1 /* -*- Mode: C; c-basic-offset: 4 -*- */
6 /* include this first, before NO_IMPORT_PYGOBJECT is defined */
9 /* include any extra headers needed here */
10 #include <beagle/beagle.h>
12 void pybeagle_register_classes(PyObject
*d
);
13 void pybeagle_add_constants(PyObject
*module
, const gchar
*strip_prefix
);
14 extern PyMethodDef pybeagle_functions
[];
21 /* perform any initialisation required by the library here */
24 m
= Py_InitModule("beagle", pybeagle_functions
);
25 d
= PyModule_GetDict(m
);
27 /* add anything else to the module dictionary (such as constants) */
28 pybeagle_register_classes(d
);
29 pybeagle_add_constants(m
, "BEAGLE_");
32 Py_FatalError("could not initialise module beagle");