]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-0.10: fix GCallback casting in probe functions
authorThijs Vermeir <thijsvermeir@gmail.com>
Wed, 3 Nov 2010 17:17:38 +0000 (18:17 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 23 Dec 2010 14:31:51 +0000 (15:31 +0100)
vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala

index 99ff77578e4fafb1c9471207937fe49c70b5d1e2..2528c9413c4ab2da183a773f4b7e6750a67d7b1d 100644 (file)
@@ -821,11 +821,11 @@ namespace Gst {
                public bool activate_pull (bool active);
                public bool activate_push (bool active);
                [CCode (cname = "gst_pad_add_buffer_probe_full")]
-               public uint add_buffer_probe (owned Gst.BufferProbeCallback handler);
+               public uint add_buffer_probe ([CCode (type = "GCallback")] owned Gst.BufferProbeCallback handler);
                [CCode (cname = "gst_pad_add_data_probe_full")]
-               public uint add_data_probe (owned Gst.DataProbeCallback handler);
+               public uint add_data_probe ([CCode (type = "GCallback")] owned Gst.DataProbeCallback handler);
                [CCode (cname = "gst_pad_add_event_probe_full")]
-               public uint add_event_probe (owned Gst.EventProbeCallback handler);
+               public uint add_event_probe ([CCode (type = "GCallback")] owned Gst.EventProbeCallback handler);
                public Gst.FlowReturn alloc_buffer (uint64 offset, int size, Gst.Caps caps, out Gst.Buffer buf);
                public Gst.FlowReturn alloc_buffer_and_set_caps (uint64 offset, int size, Gst.Caps caps, out Gst.Buffer buf);
                public bool can_link (Gst.Pad sinkpad);
index 882889cb978d625915b9577551bf7232e631b5ff..a88a6546a7b1ba017341f2b817b07724496ad0dc 100644 (file)
@@ -222,11 +222,11 @@ namespace Gst {
        [CCode (cheader_filename = "gst/gst.h")]
        public class Pad {
                [CCode (cname = "gst_pad_add_buffer_probe_full")]
-               public uint add_buffer_probe (owned BufferProbeCallback handler);
+               public uint add_buffer_probe ([CCode (type="GCallback")] owned BufferProbeCallback handler);
                [CCode (cname = "gst_pad_add_data_probe_full")]
-               public uint add_data_probe (owned DataProbeCallback handler);
+               public uint add_data_probe ([CCode (type="GCallback")] owned DataProbeCallback handler);
                [CCode (cname = "gst_pad_add_event_probe_full")]
-               public uint add_event_probe (owned EventProbeCallback handler);
+               public uint add_event_probe ([CCode (type="GCallback")] owned EventProbeCallback handler);
                [CCode (instance_pos = -1)]
                public Gst.Caps get_fixed_caps_func (Gst.Pad pad);
                [CCode (instance_pos = -1)]