#define LIBLOC_DATABASE_H
#include <stdio.h>
+#include <stdint.h>
#include <loc/libloc.h>
+#include "as.h"
+
struct loc_database;
-int loc_database_new(struct loc_ctx* ctx, struct loc_database** db, size_t pool_size);
-int loc_database_open(struct loc_ctx* ctx, struct loc_database** database, FILE* f);
+int loc_database_new(struct loc_ctx* ctx, struct loc_database** database, FILE* f);
struct loc_database* loc_database_ref(struct loc_database* db);
struct loc_database* loc_database_unref(struct loc_database* db);
+time_t loc_database_created_at(struct loc_database* db);
const char* loc_database_get_vendor(struct loc_database* db);
-int loc_database_set_vendor(struct loc_database* db, const char* vendor);
const char* loc_database_get_description(struct loc_database* db);
-int loc_database_set_description(struct loc_database* db, const char* description);
-int loc_database_read(struct loc_database* db, FILE* f);
+int loc_database_get_as(struct loc_database* db, struct loc_as** as, uint32_t number);
+size_t loc_database_count_as(struct loc_database* db);
+
int loc_database_write(struct loc_database* db, FILE* f);
#endif