add GEnumClass and GEnumValue bindings
authorJuerg Billeter <j@bitron.ch>
Sun, 13 Apr 2008 09:14:39 +0000 (09:14 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 13 Apr 2008 09:14:39 +0000 (09:14 +0000)
2008-04-13  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: add GEnumClass and GEnumValue bindings

svn path=/trunk/; revision=1193

ChangeLog
vapi/glib-2.0.vapi

index df560c3..108ca3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-04-13  Jürg Billeter  <j@bitron.ch>
 
+       * vapi/glib-2.0.vapi: add GEnumClass and GEnumValue bindings
+
+2008-04-13  Jürg Billeter  <j@bitron.ch>
+
        * configure.ac: Bump version to 0.3.1
 
 2008-04-12  Jürg Billeter  <j@bitron.ch>
index 0753da3..7ab206f 100644 (file)
@@ -751,6 +751,17 @@ namespace GLib {
        public class InitiallyUnowned : Object {
        }
 
+       [CCode (lower_case_csuffix = "enum")]
+       public class EnumClass : TypeClass {
+               public weak EnumValue get_value (int value);
+       }
+
+       public class EnumValue {
+               public int value;
+               public weak string value_name;
+               public weak string value_nick;
+       }
+
        [CCode (cname = "gpointer", has_type_id = true, type_id = "G_TYPE_BOXED", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed")]
        public abstract class Boxed {
        }