From 5e1b07e151456a4bb56e2850ea2009b0fb1467b5 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 24 Nov 2005 11:47:15 +0000 Subject: [PATCH] gst/gst.override: Ignore all *_full functions/methods Original commit message from CVS: * gst/gst.override: Ignore all *_full functions/methods * gst/gstbus.override: Wrapper for gst_bus_add_signal_watch that now takes an optional priority argument --- ChangeLog | 8 ++++++++ gst/gst.override | 1 + gst/gstbus.override | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index e6b6e493fb..e297553480 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-11-24 Edward Hervey + + * gst/gst.override: + Ignore all *_full functions/methods + * gst/gstbus.override: + Wrapper for gst_bus_add_signal_watch that now takes an optional + priority argument + 2005-11-23 Thomas Vander Stichele * configure.ac: back to HEAD diff --git a/gst/gst.override b/gst/gst.override index 860f916bfa..91e2f9cab1 100644 --- a/gst/gst.override +++ b/gst/gst.override @@ -296,6 +296,7 @@ ignore-glob *_unref *_init *_deinit + *_full gst_class_* gst_init* gst_interface_* diff --git a/gst/gstbus.override b/gst/gstbus.override index 4ab6e967a2..71ea14fc27 100644 --- a/gst/gstbus.override +++ b/gst/gstbus.override @@ -211,3 +211,19 @@ _wrap_gst_bus_add_watch (PyGObject *self, PyObject *args) return PyInt_FromLong(sigid); } +%% +override gst_bus_add_signal_watch kwargs +static PyObject * +_wrap_gst_bus_add_signal_watch(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "priority", NULL }; + int priority = G_PRIORITY_DEFAULT; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|i:GstBus.add_signal_watch", kwlist, &priority)) + return NULL; + pyg_begin_allow_threads; + gst_bus_add_signal_watch_full(GST_BUS(self->obj), priority); + pyg_end_allow_threads; + Py_INCREF(Py_None); + return Py_None; +}