mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
overrides: also provide wrapper for trace level debug logging
This commit is contained in:
parent
664c153a5f
commit
9352c54ced
2 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue