#ifndef LIBLOC_DATABASE_H
#define LIBLOC_DATABASE_H
+#include <netinet/in.h>
#include <stdio.h>
#include <stdint.h>
#include <loc/libloc.h>
+#include <loc/network.h>
#include <loc/as.h>
struct loc_database;
int loc_database_write(struct loc_database* db, FILE* f);
+int loc_database_lookup(struct loc_database* db,
+ struct in6_addr* address, struct loc_network** network);
+int loc_database_lookup_from_string(struct loc_database* db,
+ const char* string, struct loc_network** network);
+
#endif