15#include "ws_symbol_export.h"
24 const char *country_iso;
43WS_DLL_LOCAL
void maxmind_db_pref_apply(
void);
81static inline bool maxmind_db_has_coords(
const mmdb_lookup_t *result)
83 return result && result->found &&
84 result->longitude != DBL_MAX && result->latitude != DBL_MAX;
uint32_t ws_in4_addr
Represents a 32-bit IPv4 address in network byte order.
Definition inet_addr.h:22
WS_DLL_PUBLIC WS_RETNONNULL const mmdb_lookup_t * maxmind_db_lookup_ipv6(const ws_in6_addr *addr)
WS_DLL_LOCAL void maxmind_db_pref_init(module_t *nameres)
WS_DLL_PUBLIC WS_RETNONNULL const mmdb_lookup_t * maxmind_db_lookup_ipv4(const ws_in4_addr *addr)
WS_DLL_LOCAL void maxmind_db_pref_cleanup(void)
Definition maxmind_db.c:866
WS_DLL_LOCAL bool maxmind_db_lookup_process(void)
Definition maxmind_db.c:872
WS_DLL_PUBLIC void maxmind_db_set_synchrony(bool synchronous)
Definition maxmind_db.c:893
WS_DLL_PUBLIC char * maxmind_db_get_paths(void)
Definition maxmind_db.c:888
Definition maxmind_db.h:21
Represents a 128-bit IPv6 address.
Definition inet_addr.h:27
Definition prefs-int.h:24