]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/libloc.c
python: Remove local stringpool and ctx from AS class
[people/ms/libloc.git] / src / libloc.c
index 58e13cc6429f370f3c05a493b63067c9c4976ce9..8b8872c404da93571bab75ea25e95b5428a65dd0 100644 (file)
@@ -24,8 +24,8 @@
 #include <ctype.h>
 
 #include <loc/libloc.h>
-#include "libloc-private.h"
-#include "database.h"
+#include <loc/database.h>
+#include <loc/private.h>
 
 struct loc_ctx {
        int refcount;
@@ -147,7 +147,7 @@ LOC_EXPORT int loc_load(struct loc_ctx* ctx, const char* path) {
                loc_database_unref(ctx->db);
 
        // Open the new database
-       int r = loc_database_open(ctx, &ctx->db, f);
+       int r = loc_database_new(ctx, &ctx->db, f);
        if (r)
                return r;