This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
cryptic/bindings/python/wrapper_bottom.c

19 lines
427 B
C

PyMODINIT_FUNC
init_cryptic(void)
{
PyObject *m, *d;
if (PyType_Ready(&PyGObjectPtrType) < 0)
return;
m = Py_InitModule3("_cryptic", cryptic_methods, "_cryptic wrapper module");
d = PyModule_GetDict(m);
register_constants(d);
cryptic_wrapper_key = g_quark_from_static_string("PyLasso::wrapper");
Py_INCREF(&PyGObjectPtrType);
PyModule_AddObject(m, "PyGObjectPtr", (PyObject *)&PyGObjectPtrType);
}