diff options
author | Mark Nauwelaerts <mnauw@users.sourceforge.net> | 2015-11-08 11:56:28 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mnauw@users.sourceforge.net> | 2015-11-08 11:56:41 +0100 |
commit | 9352c54ced630064779d38614e560309482a3829 (patch) | |
tree | cbb5f8e3a0b5b9d386354e2f7e261f32828647bb /gi | |
parent | 664c153a5f272672befec621d95ae40461e4f190 (diff) |
overrides: also provide wrapper for trace level debug logging
Diffstat (limited to 'gi')
-rw-r--r-- | gi/overrides/Gst.py | 1 | ||||
-rw-r--r-- | gi/overrides/gstmodule.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gi/overrides/Gst.py b/gi/overrides/Gst.py index 9ee6081..d1f9a40 100644 --- a/gi/overrides/Gst.py +++ b/gi/overrides/Gst.py @@ -330,6 +330,7 @@ _gi_gst # maybe more python and less C some day if core turns a bit more introspection # and binding friendly in the debug area +Gst.trace = _gi_gst.trace Gst.log = _gi_gst.log Gst.debug = _gi_gst.debug Gst.info = _gi_gst.info diff --git a/gi/overrides/gstmodule.c b/gi/overrides/gstmodule.c index 6f9a14b..c31d34e 100644 --- a/gi/overrides/gstmodule.c +++ b/gi/overrides/gstmodule.c @@ -287,6 +287,12 @@ pygst_debug_log (PyObject * pyobject, PyObject * string, GstDebugLevel level, } static PyObject * +_wrap_gst_trace (PyObject * whatever, PyObject * string) +{ + return pygst_debug_log (whatever, string, GST_LEVEL_TRACE, FALSE); +} + +static PyObject * _wrap_gst_log (PyObject * whatever, PyObject * string) { return pygst_debug_log (whatever, string, GST_LEVEL_LOG, FALSE); @@ -329,6 +335,8 @@ _wrap_gst_memdump (PyObject * whatever, PyObject * string) } static PyMethodDef _gi_gst_functions[] = { + {"trace", (PyCFunction) _wrap_gst_trace, METH_VARARGS, + NULL}, {"log", (PyCFunction) _wrap_gst_log, METH_VARARGS, NULL}, {"debug", (PyCFunction) _wrap_gst_debug, METH_VARARGS, |