Commit 9352c54c authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

overrides: also provide wrapper for trace level debug logging

parent 664c153a
......@@ -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
......
......@@ -286,6 +286,12 @@ pygst_debug_log (PyObject * pyobject, PyObject * string, GstDebugLevel level,
return Py_None;
}
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)
{
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment