summaryrefslogtreecommitdiffstats
path: root/src/report-python/reportmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/report-python/reportmodule.c')
-rw-r--r--src/report-python/reportmodule.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/report-python/reportmodule.c b/src/report-python/reportmodule.c
index f98ba75e..5fa31ca2 100644
--- a/src/report-python/reportmodule.c
+++ b/src/report-python/reportmodule.c
@@ -21,12 +21,12 @@
PyObject *ReportError;
-//static PyMethodDef module_methods[] = {
-// { "dd_opendir" , p_dd_opendir, METH_VARARGS, NULL };
-// { "dd_create" , p_dd_create, METH_VARARGS, NULL };
+static PyMethodDef module_methods[] = {
+ { "dd_opendir" , p_dd_opendir, METH_VARARGS, NULL },
+ { "dd_create" , p_dd_create, METH_VARARGS, NULL },
// { "delete_crash_dump_dir", p_delete_crash_dump_dir, METH_VARARGS, NULL },
-// { NULL }
-//};
+ { NULL }
+};
#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
#define PyMODINIT_FUNC void
@@ -47,8 +47,9 @@ init_pyreport(void)
return;
}
- m = Py_InitModule3("_pyreport", /*module_methods:*/ NULL, "Python wrapper for libreport");
- if (m == NULL)
+ m = Py_InitModule("_pyreport", module_methods);
+ //m = Py_InitModule3("_pyreport", module_methods, "Python wrapper for libreport");
+ if (!m)
{
printf("m == NULL\n");
return;