872d43c04fb5ac9bb95e01c0fab773454f169d38
[sdc/sdc-distribution-client.git] /
1 #include <Python.h>
2
3
4 static PyMethodDef TestextMethods[] = {
5     {NULL, NULL, 0, NULL}
6 };
7
8
9 #if PY_MAJOR_VERSION >=3
10 static struct PyModuleDef testextmodule = {
11     PyModuleDef_HEAD_INIT,
12     "testext",
13     -1,
14     TestextMethods
15 };
16
17 PyObject*
18 PyInit_testext(void)
19 {
20     return PyModule_Create(&testextmodule);
21 }
22 #else
23 PyMODINIT_FUNC
24 inittestext(void)
25 {
26     Py_InitModule("testext", TestextMethods);
27 }
28 #endif