]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/python/locationmodule.c
python: Add AS class
[people/ms/libloc.git] / src / python / locationmodule.c
index 02aeb32fc5853ea020e4fbc1c0e11b6edf42d180..39a7a1d30a4f30a6a9d656de04076e8af6fa0a55 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <Python.h>
 
+#include "as.h"
 #include "database.h"
 
 PyMODINIT_FUNC PyInit_location(void);
@@ -37,6 +38,13 @@ PyMODINIT_FUNC PyInit_location(void) {
        if (!m)
                return NULL;
 
+       // AS
+       if (PyType_Ready(&ASType) < 0)
+               return NULL;
+
+       Py_INCREF(&ASType);
+       PyModule_AddObject(m, "AS", (PyObject *)&ASType);
+
        // Database
        if (PyType_Ready(&DatabaseType) < 0)
                return NULL;