[caribou] Added annotations for list struct members in vapi.



commit 808bd3c5232cee015fefd7a117adb42a2c7a619c
Author: Eitan Isaacson <eitan monotonous org>
Date:   Mon Aug 29 17:38:12 2011 -0700

    Added annotations for list struct members in vapi.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657648

 libcaribou/external-libs.vapi |    2 ++
 libcaribou/libxklavier.vapi   |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libcaribou/external-libs.vapi b/libcaribou/external-libs.vapi
index 078126e..4a41020 100644
--- a/libcaribou/external-libs.vapi
+++ b/libcaribou/external-libs.vapi
@@ -133,7 +133,9 @@ namespace Xkb {
 
         public ushort           size_syms;
         public ushort           num_syms;
+        [CCode (array_length = false, array_null_terminated = true)]
         public uint[]           syms;
+        [CCode (array_length = false, array_null_terminated = true)]
         public SymMap[]         key_sym_map;
 
         public uchar[]          modmap;
diff --git a/libcaribou/libxklavier.vapi b/libcaribou/libxklavier.vapi
index 23c386e..4fa1058 100644
--- a/libcaribou/libxklavier.vapi
+++ b/libcaribou/libxklavier.vapi
@@ -15,9 +15,12 @@ namespace Xkl {
 	}
 	[CCode (cheader_filename = "libxklavier/xklavier.h")]
 	public class ConfigRec : GLib.Object {
+        [CCode (array_length = false, array_null_terminated = true)]
 		public string[] layouts;
 		public weak string model;
+        [CCode (array_length = false, array_null_terminated = true)]
 		public string[] options;
+        [CCode (array_length = false, array_null_terminated = true)]
 		public string[] variants;
 		[CCode (has_construct_function = false)]
 		public ConfigRec ();



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