Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/python/hulahopmodule.c
blob: ccbb77388869fcd48f9f41698a22dad4df2ff877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <pygobject.h>

void py_hulahop_register_classes (PyObject *d);

extern PyMethodDef pyhulahop_functions[];

DL_EXPORT(void)
init_hulahop(void)
{
    PyObject *m, *d;

    init_pygobject ();

    m = Py_InitModule ("_hulahop", pyhulahop_functions);
    d = PyModule_GetDict (m);

    pyhulahop_register_classes (d);

    if (PyErr_Occurred ()) {
        Py_FatalError ("can't initialise module hulahop");
    }
}