+2008-04-16 Marc-Andre Lureau <marcandre.lureau@gmail.com>
+
+ * vapi/glib-2.0.vapi (EnumClass, FlagsClass, FlagsValue): complete
+ glib-2.0 enum and flags bindings, fixes bug 528114
+
2008-04-16 Jürg Billeter <j@bitron.ch>
* vapi/sdl-gfx.vapi, vapi/sdl-image.vapi, vapi/sdl-mixer.vapi,
[CCode (lower_case_csuffix = "enum")]
public class EnumClass : TypeClass {
- public weak EnumValue get_value (int value);
+ public weak EnumValue? get_value (int value);
+ public weak EnumValue? get_value_by_name (string name);
+ public weak EnumValue? get_value_by_nick (string name);
}
public class EnumValue {
public weak string value_nick;
}
+ [CCode (lower_case_csuffix = "flags")]
+ public class FlagsClass : TypeClass {
+ public weak FlagsValue? get_first_value ();
+ public weak FlagsValue? get_value_by_name (string name);
+ public weak FlagsValue? get_value_by_nick (string name);
+ }
+
+ public class FlagsValue {
+ 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 {
}