diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-23 17:25:21 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-23 17:25:21 +0200 |
| commit | 497c2f4e8ac6ed3621429b9a11b897d9fbb63ee0 (patch) | |
| tree | 87743b78ac8c78dc23604115e787ae0f02aeb3f1 /src/report-python/reportmodule.c | |
| parent | 28e6bba1e2a35f6bca8f27b5397e1c7fa2171fd4 (diff) | |
| download | abrt-497c2f4e8ac6ed3621429b9a11b897d9fbb63ee0.tar.gz abrt-497c2f4e8ac6ed3621429b9a11b897d9fbb63ee0.tar.xz abrt-497c2f4e8ac6ed3621429b9a11b897d9fbb63ee0.zip | |
obsolete report with libreport-python
Diffstat (limited to 'src/report-python/reportmodule.c')
| -rw-r--r-- | src/report-python/reportmodule.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/report-python/reportmodule.c b/src/report-python/reportmodule.c index 92f435ce..1cae783f 100644 --- a/src/report-python/reportmodule.c +++ b/src/report-python/reportmodule.c @@ -22,11 +22,21 @@ PyObject *ReportError; + +static PyObject *p_report(PyObject *pself, PyObject *problem_data) +{ + p_problem_data *p_pd = (p_problem_data*)problem_data; + report(p_pd->cd); + //FIXME return status as integer object + Py_RETURN_NONE; +} + static PyMethodDef module_methods[] = { /* method_name, func, flags, doc_string */ { "dd_opendir" , p_dd_opendir , METH_VARARGS }, { "dd_create" , p_dd_create , METH_VARARGS }, { "delete_dump_dir", p_delete_dump_dir, METH_VARARGS }, + { "report_problem_data" , p_report, METH_O}, { NULL } }; |
