]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/python/database.h
python: Implement searching for ASes
[people/ms/libloc.git] / src / python / database.h
index 8155cbd1144037fad32828db43efc6eeb3fa128b..b8c766ec8931ad44303b76e678c95808b4ff0280 100644 (file)
 
 #include <Python.h>
 
+#include <loc/database.h>
+
 typedef struct {
        PyObject_HEAD
-       struct loc_ctx* ctx;
        struct loc_database* db;
+       char* path;
 } DatabaseObject;
 
 extern PyTypeObject DatabaseType;
 
+typedef struct {
+       PyObject_HEAD
+       struct loc_database_enumerator* enumerator;
+} DatabaseEnumeratorObject;
+
+extern PyTypeObject DatabaseEnumeratorType;
+
 #endif /* PYTHON_LOCATION_DATABASE_H */