PyMODINIT_FUNC PyInit_renderer (void) { if (import_cairo () < 0) { g_print ("Cairo import failed."); } PyObject *m; m = PyModule_Create (&module); if (m == NULL) return NULL; return m; }
PyMODINIT_FUNC PyInit_image(void) { PyObject *m; m = PyModule_Create(&image_module); if (m == NULL) return NULL; if (import_cairo() < 0) return NULL; /* supress warnings from libtiff. */ disable_libtiff_warnings (); return m; }
PyMODINIT_FUNC PyInit_renderer (void) { PyObject *m; gobject_class = g_type_class_peek (G_TYPE_OBJECT); /* Workaround https://phabricator.freedesktop.org/T3350 */ _disable_gst_object_deep_notify_recurse (GST_TYPE_OBJECT); if (import_cairo () < 0) { g_print ("Cairo import failed."); } m = PyModule_Create (&module); if (m == NULL) return NULL; return m; }