[vala] gstreamer-0.10: Fix gst_bus_add_watch binding
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] gstreamer-0.10: Fix gst_bus_add_watch binding
- Date: Sun, 13 Dec 2009 16:54:30 +0000 (UTC)
commit b0d5cc0b442999d16bbc1088f9f16a984fdece45
Author: Jürg Billeter <j bitron ch>
Date: Sun Dec 13 17:53:27 2009 +0100
gstreamer-0.10: Fix gst_bus_add_watch binding
Use gst_bus_add_watch_full to accept owned delegates.
vapi/gstreamer-0.10.vapi | 3 ++-
.../gstreamer-0.10/gstreamer-0.10-custom.vala | 2 ++
.../gstreamer-0.10/gstreamer-0.10.metadata | 1 +
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 8cab314..543a876 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -134,7 +134,8 @@ namespace Gst {
public Bus ();
public void add_signal_watch ();
public void add_signal_watch_full (int priority);
- public uint add_watch (Gst.BusFunc func);
+ [CCode (cname = "gst_bus_add_watch_full")]
+ public uint add_watch (owned Gst.BusFunc func, [CCode (pos = 0.1)] int priority = GLib.Priority.DEFAULT);
public uint add_watch_full (int priority, owned Gst.BusFunc func);
public bool async_signal_func (Gst.Message message, void* data);
public unowned GLib.TimeoutSource create_watch ();
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
index 34d6ff9..f752485 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -64,6 +64,8 @@ namespace Gst {
}
public class Bus {
+ [CCode (cname = "gst_bus_add_watch_full")]
+ public uint add_watch (owned Gst.BusFunc func, [CCode (pos = 0.1)] int priority = GLib.Priority.DEFAULT);
[CCode (instance_pos = -1)]
public Gst.BusSyncReply sync_signal_handler (Gst.Bus bus, Gst.Message message);
}
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index 229d5b8..d7b65c7 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
@@ -31,6 +31,7 @@ gst_buffer_create_sub transfer_ownership="1"
gst_buffer_make_writable hidden="1"
gst_buffer_make_metadata_writable hidden="1"
gst_buffer_try_new_and_alloc transfer_ownership="1"
+gst_bus_add_watch hidden="1"
gst_bus_add_watch_full.func value_owned="1"
gst_bus_add_watch_full.notify hidden="1"
gst_bus_set_sync_handler.data hidden="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]