]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gststreamer-0.10: Revert some changes
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 18 Jun 2010 15:22:47 +0000 (18:22 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 18 Jun 2010 15:22:47 +0000 (18:22 +0300)
The following fields were transformed to methods to make them
read-only for vala as they are macros for C:

* Gst.Message.type
* Gst.Message.src
* Gst.Event.type
* Gst.Event.src

Reverting this change as it breaks the build for rygel (and any app using
these APIs from vala 0.8.x) and its not so important anyways.

vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

index 7f33f3bc2bdcbd12ff373d5284eda6973d8f2a2d..288ba4b537ddac93f72ae3eb70db785293ab0991 100644 (file)
@@ -463,7 +463,9 @@ namespace Gst {
        }
        [CCode (ref_function = "gst_event_ref", unref_function = "gst_event_unref", cheader_filename = "gst/gst.h")]
        public class Event : Gst.MiniObject {
+               public weak Gst.Object src;
                public uint64 timestamp;
+               public Gst.EventType type;
                [CCode (has_construct_function = false)]
                public Event.buffer_size (Gst.Format format, int64 minsize, int64 maxsize, bool @async);
                public Gst.Event copy ();
@@ -510,14 +512,10 @@ namespace Gst {
                public void set_seqnum (uint32 seqnum);
                [CCode (has_construct_function = false)]
                public Event.sink_message (owned Gst.Message msg);
-               [CCode (cname = "GST_EVENT_SRC")]
-               public unowned Gst.Object src ();
                [CCode (has_construct_function = false)]
                public Event.step (Gst.Format format, uint64 amount, double rate, bool flush, bool intermediate);
                [CCode (has_construct_function = false)]
                public Event.tag (owned Gst.TagList taglist);
-               [CCode (cname = "GST_EVENT_TYPE")]
-               public Gst.EventType type ();
                public static Gst.EventTypeFlags type_get_flags (Gst.EventType type);
                public static unowned string type_get_name (Gst.EventType type);
                public static GLib.Quark type_to_quark (Gst.EventType type);
@@ -627,7 +625,9 @@ namespace Gst {
        }
        [CCode (ref_function = "gst_message_ref", unref_function = "gst_message_unref", cheader_filename = "gst/gst.h")]
        public class Message : Gst.MiniObject {
+               public weak Gst.Object src;
                public uint64 timestamp;
+               public Gst.MessageType type;
                [CCode (has_construct_function = false)]
                public Message.application (Gst.Object src, owned Gst.Structure? structure);
                [CCode (has_construct_function = false)]
@@ -692,8 +692,6 @@ namespace Gst {
                public void set_buffering_stats (Gst.BufferingMode mode, int avg_in, int avg_out, int64 buffering_left);
                public void set_seqnum (uint32 seqnum);
                public void set_stream_status_object (ref unowned Gst.Value? object);
-               [CCode (cname = "GST_MESSAGE_SRC")]
-               public unowned Gst.Object src ();
                [CCode (has_construct_function = false)]
                public Message.state_changed (Gst.Object src, Gst.State oldstate, Gst.State newstate, Gst.State pending);
                [CCode (has_construct_function = false)]
@@ -710,8 +708,6 @@ namespace Gst {
                public Message.tag (Gst.Object src, Gst.TagList tag_list);
                [CCode (has_construct_function = false)]
                public Message.tag_full (Gst.Object src, Gst.Pad pad, Gst.TagList tag_list);
-               [CCode (cname = "GST_MESSAGE_TYPE")]
-               public Gst.MessageType type ();
                public static GLib.Quark type_to_quark (Gst.MessageType type);
                public void unref ();
                [CCode (has_construct_function = false)]
index f2cfc4f87e88ed75ddef28e255c5f76b685027e1..dcae8498e720c81b1fb5e27835ee1174d08dfecb 100644 (file)
@@ -47,10 +47,6 @@ namespace Gst {
                public static void replace (ref Event? oldobj, Event? newobj);
                public Event copy ();
 
-               [CCode (cname = "GST_EVENT_SRC")]
-               public unowned Gst.Object src ();
-               [CCode (cname = "GST_EVENT_TYPE")]
-               public EventType type ();
                [CCode (cname = "GST_EVENT_IS_UPSTREAM")]
                public bool is_upstream ();
                [CCode (cname = "GST_EVENT_IS_DOWNSTREAM")]
@@ -284,11 +280,6 @@ namespace Gst {
                public void unref ();
                public Message copy ();
 
-               [CCode (cname = "GST_MESSAGE_TYPE")]
-               public Gst.MessageType type ();
-               [CCode (cname = "GST_MESSAGE_SRC")]
-               public unowned Gst.Object src ();
-
                // Deprecated, real method is in MessageType
                public static GLib.Quark type_to_quark (Gst.MessageType type);
        }
index b0d29ec168d91503f6091248c20e7f36f57da1ba..a8131a5c666430fbba3ae91a56f3d66e1eabad0a 100644 (file)
@@ -176,8 +176,6 @@ GstEvent base_class="GstMiniObject"
 GstEvent.mini_object hidden="1"
 GstEvent.abidata hidden="1"
 GstEvent.structure hidden="1"
-GstEvent.src hidden="1"
-GstEvent.type hidden="1"
 GstEventClass hidden="1"
 GstEventType to_string="gst_event_type_get_name"
 gst_event_type_get_flags hidden="1"
@@ -250,9 +248,7 @@ GstMessage.mini_object hidden="1"
 GstMessage.abidata hidden="1"
 GstMessage.cond hidden="1"
 GstMessage.lock hidden="1"
-GstMessage.src hidden="1"
 GstMessage.structure hidden="1"
-GstMessage.type hidden="1"
 GstMessageClass hidden="1"
 gst_message_make_writable hidden="1"
 gst_message_get_structure nullable="1"