Lines Matching defs:mmdb
70 MMDB_s *mmdb;
76 MMDB_s *mmdb;
166 MMDB_s *mmdb = (MMDB_s *)emalloc(sizeof(MMDB_s));
167 uint16_t status = MMDB_open(db_file, MMDB_MODE_MMAP, mmdb);
174 efree(mmdb);
179 mmdb_obj->mmdb = mmdb;
232 MMDB_s *mmdb = mmdb_obj->mmdb;
234 if (NULL == mmdb) {
265 MMDB_lookup_sockaddr(mmdb, addresses->ai_addr, &mmdb_error);
285 if (sa_family == AF_INET && mmdb->metadata.ip_version == 6) {
331 if (NULL == mmdb_obj->mmdb) {
352 MMDB_get_metadata_as_entry_data_list(mmdb_obj->mmdb, &entry_data_list);
392 if (NULL == mmdb_obj->mmdb) {
397 MMDB_close(mmdb_obj->mmdb);
398 efree(mmdb_obj->mmdb);
399 mmdb_obj->mmdb = NULL;
604 if (obj->mmdb != NULL) {
605 MMDB_close(obj->mmdb);
606 efree(obj->mmdb);