Update with current status
[gnash.git] / gui / pythonmod / gnashmodule.c
blobf87824428bb041b3213b7f8c60d9ce2fe7ee0f67
1 #include <pygobject.h>
3 void pygnash_register_classes (PyObject *d);
5 extern PyMethodDef pygnash_functions[];
7 DL_EXPORT(void)
8 initgnash(void)
10 PyObject *m, *d;
12 init_pygobject ();
14 m = Py_InitModule ("gnash", pygnash_functions);
15 d = PyModule_GetDict (m);
17 pygnash_register_classes (d);
19 if (PyErr_Occurred ()) {
20 Py_FatalError ("can't initialise module gnash");