[vala] gstreamer-0.10: Don't expose class structures
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] gstreamer-0.10: Don't expose class structures
- Date: Wed, 25 Nov 2009 15:23:23 +0000 (UTC)
commit b98674a208471dd17f833d142fe2a9224f95ecf3
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Nov 25 16:45:39 2009 +0200
gstreamer-0.10: Don't expose class structures
Hide the class structs from metadata file and custom bind the virtual
functions.
vapi/gstreamer-0.10.vapi | 25 +------------------
.../gstreamer-0.10/gstreamer-0.10-custom.vala | 3 ++
.../gstreamer-0.10/gstreamer-0.10.metadata | 19 ++++++--------
3 files changed, 13 insertions(+), 34 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 042c4b3..8cab314 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -100,10 +100,6 @@ namespace Gst {
}
[Compact]
[CCode (cheader_filename = "gst/gst.h")]
- public class BufferClass : Gst.MiniObjectClass {
- }
- [Compact]
- [CCode (cheader_filename = "gst/gst.h")]
public class BufferList {
[CCode (has_construct_function = false)]
public BufferList ();
@@ -114,10 +110,6 @@ namespace Gst {
}
[Compact]
[CCode (cheader_filename = "gst/gst.h")]
- public class BufferListClass {
- }
- [Compact]
- [CCode (cheader_filename = "gst/gst.h")]
public class BufferListIterator {
public void add (Gst.Buffer buffer);
public void add_group ();
@@ -710,28 +702,19 @@ namespace Gst {
[CCode (has_construct_function = false)]
public Message.warning (Gst.Object src, GLib.Error error, string debug);
}
- [Compact]
- [CCode (cheader_filename = "gst/gst.h")]
- public class MessageClass : Gst.MiniObjectClass {
- }
[CCode (ref_function = "gst_mini_object_ref", unref_function = "gst_mini_object_unref", cheader_filename = "gst/gst.h")]
public class MiniObject {
public uint flags;
public int refcount;
[CCode (has_construct_function = false)]
public MiniObject (GLib.Type type);
- public Gst.MiniObject copy ();
+ public virtual Gst.MiniObject copy ();
+ public virtual void finalize ();
public bool is_writable ();
[ReturnsModifiedPointer]
public void make_writable ();
public void replace (Gst.MiniObject newdata);
}
- [Compact]
- [CCode (cheader_filename = "gst/gst.h")]
- public class MiniObjectClass : GLib.TypeClass {
- public weak Gst.MiniObjectCopyFunction copy;
- public weak Gst.MiniObjectFinalizeFunction finalize;
- }
[CCode (ref_function = "gst_object_ref", unref_function = "gst_object_unref", cheader_filename = "gst/gst.h")]
public class Object : GLib.Object {
public uint32 flags;
@@ -1115,10 +1098,6 @@ namespace Gst {
}
[Compact]
[CCode (cheader_filename = "gst/gst.h")]
- public class QueryClass : Gst.MiniObjectClass {
- }
- [Compact]
- [CCode (cheader_filename = "gst/gst.h")]
public class QueryTypeDefinition {
public weak string description;
public weak string nick;
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 6dee2d2..34d6ff9 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -98,6 +98,9 @@ namespace Gst {
public class MiniObject {
[ReturnsModifiedPointer]
public void make_writable ();
+
+ public virtual MiniObject copy ();
+ public virtual void finalize ();
}
public class Message {
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index 0966a23..229d5b8 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
@@ -25,8 +25,7 @@ gst_bin_find_unconnected_pad transfer_ownership="1"
GstBuffer base_class="GstMiniObject"
GstBuffer.data is_array="1"
GstBuffer.mini_object hidden="1"
-GstBufferClass base_class="GstMiniObjectClass"
-GstBufferClass.mini_object_class hidden="1"
+GstBufferClass hidden="1"
gst_buffer_new hidden="1"
gst_buffer_create_sub transfer_ownership="1"
gst_buffer_make_writable hidden="1"
@@ -65,7 +64,7 @@ GstElement::no_more_pads has_emitter="1"
GstElement.pads type_arguments="Pad"
GstElement.sinkpads type_arguments="Pad"
GstElement.srcpads type_arguments="Pad"
-GstElementClass name="pointer"
+GstElementClass hidden="1"
gst_element_add_pad.pad takes_ownership="1"
gst_element_link_many ellipsis="1"
gst_element_unlink_many ellipsis="1"
@@ -148,8 +147,7 @@ gst_iterator_fold.ret nullable="1"
gst_iterator_find_custom.user_data hidden="0"
GstMessage base_class="GstMiniObject"
GstMessage.mini_object hidden="1"
-GstMessageClass base_class="GstMiniObjectClass"
-GstMessageClass.mini_object_class hidden="1"
+GstMessageClass hidden="1"
GstMessageType to_string="gst_message_type_get_name"
gst_message_make_writable hidden="1"
gst_message_new_application.structure takes_ownership="1"
@@ -183,11 +181,10 @@ gst_message_parse_tag.tag_list is_out="1" value_owned="1"
gst_message_type_get_name hidden="1"
GstMiniObject is_fundamental="1"
GstMiniObject.instance hidden="1"
-GstMiniObjectClass base_class="GTypeClass"
-GstMiniObjectClass.type_class hidden="1"
+GstMiniObjectClass hidden="1"
gst_mini_object_make_writable hidden="1"
-gst_mini_object_copy transfer_ownership="1"
-GstObjectClass name="pointer"
+gst_mini_object_copy hidden="1"
+GstObjectClass hidden="1"
gst_object_default_error throws="0"
gst_class_signal_connect hidden="1"
gst_class_signal_emit_by_name hidden="1"
@@ -237,8 +234,7 @@ GstParamSpecMiniObject.parent_instance hidden="1"
gst_pipeline_get_bus transfer_ownership="1"
GstQuery base_class="GstMiniObject"
GstQuery.mini_object hidden="1"
-GstQueryClass base_class="GstMiniObjectClass"
-GstQueryClass.mini_object_class hidden="1"
+GstQueryClass hidden="1"
GstQueryType to_string="gst_query_type_get_name"
gst_query_make_writable hidden="1"
gst_query_parse_convert.src_format is_out="1"
@@ -410,3 +406,4 @@ gst_xml_parse_doc hidden="1"
gst_xml_parse_file hidden="1"
gst_xml_get_element hidden="1"
xml* name="pointer"
+GstBufferListClass hidden="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]