Add is_fundamental metadata attribute
authorJürg Billeter <j@bitron.ch>
Fri, 17 Oct 2008 14:26:29 +0000 (14:26 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 17 Oct 2008 14:26:29 +0000 (14:26 +0000)
2008-10-17  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala:

Add is_fundamental metadata attribute

* vapi/packages/gstreamer-0.10/:

Fix GstMiniObject binding

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1855

ChangeLog
vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
vapigen/valagidlparser.vala

index 6141d24..a23d4c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2008-10-17  Jürg Billeter  <j@bitron.ch>
 
+       * vapigen/valagidlparser.vala:
+
+       Add is_fundamental metadata attribute
+
+       * vapi/packages/gstreamer-0.10/:
+
+       Fix GstMiniObject binding
+
+       * vapi/gstreamer-0.10.vapi: regenerated
+
+2008-10-17  Jürg Billeter  <j@bitron.ch>
+
        * vapigen/Makefile.am:
        * vapigen/valagirparser.vala:
        * vapigen/valamarkupreader.vala:
index 86cfe0d..b04ee39 100644 (file)
@@ -988,7 +988,7 @@ namespace Gst {
        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 : GLib.TypeInstance {
+       public class MiniObject {
                public int refcount;
                public uint flags;
                public weak Gst.MiniObject copy ();
index d912474..d2408dd 100644 (file)
@@ -119,7 +119,7 @@ gst_message_parse_segment_start.position is_out="1"
 gst_message_parse_segment_done.format is_out="1"
 gst_message_parse_segment_done.position is_out="1"
 gst_message_parse_tag.tag_list is_out="1" value_owned="1"
-GstMiniObject base_class="GTypeInstance"
+GstMiniObject is_fundamental="1"
 GstMiniObject.instance hidden="1"
 GstMiniObjectClass base_class="GTypeClass"
 GstMiniObjectClass.type_class hidden="1"
index c74e291..b48e571 100644 (file)
@@ -435,6 +435,10 @@ public class Vala.GIdlParser : CodeVisitor {
                                                        if (eval (nv[1]) == "1") {
                                                                cl.is_immutable = true;
                                                        }
+                                               } else if (nv[0] == "is_fundamental") {
+                                                       if (eval (nv[1]) == "1") {
+                                                               cl.is_compact = false;
+                                                       }
                                                } else if (nv[0] == "abstract" && base_class != null) {
                                                        if (eval (nv[1]) == "1") {
                                                                cl.is_abstract = true;