]> git.ipfire.org Git - location/libloc.git/commitdiff
python: Export DatabaseEnumerator type
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Aug 2022 09:40:21 +0000 (09:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Aug 2022 09:40:21 +0000 (09:40 +0000)
This is useful for tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/locationmodule.c

index 09cd5dde06d5783c994d7f424e2961fc1df55365..46d9f83417416e05f8b10012574c9eaa6ca3a620 100644 (file)
@@ -147,7 +147,7 @@ PyMODINIT_FUNC PyInit__location(void) {
                return NULL;
 
        Py_INCREF(&DatabaseEnumeratorType);
-       //PyModule_AddObject(m, "DatabaseEnumerator", (PyObject *)&DatabaseEnumeratorType);
+       PyModule_AddObject(m, "DatabaseEnumerator", (PyObject *)&DatabaseEnumeratorType);
 
        // Network
        if (PyType_Ready(&NetworkType) < 0)