[vala/staging: 3/4] gstreamer-base-1.0: Add array-length for data fields of Bit/ByteReader



commit 52e28785c421b4ebd7a8db1a4a0c9710eaa7ab54
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Oct 14 09:35:09 2016 +0200

    gstreamer-base-1.0: Add array-length for data fields of Bit/ByteReader

 vapi/gstreamer-base-1.0.vapi       |    6 ++++--
 vapi/metadata/GstBase-1.0.metadata |    4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index ad17412..8b0bb02 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -59,8 +59,9 @@ namespace Gst {
                public class BitReader {
                        public uint bit;
                        public uint byte;
-                       [CCode (array_length = false)]
+                       [CCode (array_length_cname = "size", array_length_type = "guint")]
                        public weak uint8[] data;
+                       public uint size;
                        public BitReader ([CCode (array_length_type = "guint")] uint8[] data);
                        [CCode (cname = "gst_bit_reader_free")]
                        public void free ();
@@ -100,8 +101,9 @@ namespace Gst {
                [GIR (name = "ByteReader")]
                public class ByteReader {
                        public uint byte;
-                       [CCode (array_length = false)]
+                       [CCode (array_length_cname = "size", array_length_type = "guint")]
                        public weak uint8[] data;
+                       public uint size;
                        public ByteReader ([CCode (array_length_type = "guint")] uint8[] data);
                        [CCode (cname = "gst_byte_reader_dup_data")]
                        public bool dup_data ([CCode (array_length_cname = "size", array_length_pos = 0.5, 
array_length_type = "guint")] out uint8[] val);
diff --git a/vapi/metadata/GstBase-1.0.metadata b/vapi/metadata/GstBase-1.0.metadata
index 24c7b97..31f4d0c 100644
--- a/vapi/metadata/GstBase-1.0.metadata
+++ b/vapi/metadata/GstBase-1.0.metadata
@@ -8,9 +8,9 @@ PushSrc
 
 // Fields
 BitReader
-  .size skip
+  .data array_length_field="size"
 ByteReader
-  .size skip
+  .data array_length_field="size"
 ByteWriter struct=false
   .new* skip=false
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]