[vala] gstreamer-0.10: fix GCallback casting in probe functions
- From: Thijs Vermeir <tvermeir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gstreamer-0.10: fix GCallback casting in probe functions
- Date: Wed, 3 Nov 2010 17:18:39 +0000 (UTC)
commit 7dde328b0b180703e256f3152c8d0261ceae5d9f
Author: Thijs Vermeir <thijsvermeir gmail com>
Date: Wed Nov 3 18:17:38 2010 +0100
gstreamer-0.10: fix GCallback casting in probe functions
vapi/gstreamer-0.10.vapi | 6 +++---
.../gstreamer-0.10/gstreamer-0.10-custom.vala | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 99ff775..2528c94 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -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);
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 882889c..a88a654 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -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)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]