13#ifndef __MAXMIND_DB_H__
14#define __MAXMIND_DB_H__
18#include "ws_symbol_export.h"
27 const char *country_iso;
46WS_DLL_LOCAL
void maxmind_db_pref_apply(
void);
84static inline bool maxmind_db_has_coords(
const mmdb_lookup_t *result)
86 return result && result->found &&
87 result->longitude != DBL_MAX && result->latitude != DBL_MAX;
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:827
WS_DLL_LOCAL bool maxmind_db_lookup_process(void)
Definition maxmind_db.c:833
WS_DLL_PUBLIC void maxmind_db_set_synchrony(bool synchronous)
Definition maxmind_db.c:854
WS_DLL_PUBLIC char * maxmind_db_get_paths(void)
Definition maxmind_db.c:849
Definition maxmind_db.h:24
Definition inet_addr.h:21
Definition prefs-int.h:27