File: pyntrack-module.c

package info (click to toggle)
ntrack 008-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,960 kB
  • ctags: 349
  • sloc: sh: 10,127; ansic: 1,682; makefile: 366; cpp: 122; python: 11
file content (22 lines) | stat: -rw-r--r-- 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <pygobject.h>
 
void pyntrack_register_classes (PyObject *d); 
extern PyMethodDef pyntrack_functions[];
 
PyMODINIT_FUNC
initpyntrack (void)
{
    PyObject *m, *d;
 
    init_pygobject ();
 
    m = Py_InitModule ("pyntrack", pyntrack_functions);
    d = PyModule_GetDict (m);
 
    pyntrack_register_classes (d);

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