From: Marc-Andre Lureau Date: Sun, 13 Apr 2008 14:07:04 +0000 (+0000) Subject: add init, register_transform, and boxed bindings, fixes bug 514349. X-Git-Tag: VALA_0_3_1~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=067e298647507200a901c1a6e47f5d1b1d96ef55;p=platform%2Fupstream%2Fvala.git add init, register_transform, and boxed bindings, fixes bug 514349. 2008-04-13 Marc-Andre Lureau * vapi/glib-2.0.vapi (Value): add init, register_transform, and boxed bindings, fixes bug 514349. svn path=/trunk/; revision=1206 --- diff --git a/ChangeLog b/ChangeLog index 39beff3..7589286 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-13 Marc-Andre Lureau + + * vapi/glib-2.0.vapi (Value): add init, register_transform, and + boxed bindings, fixes bug 514349. + 2008-04-13 Jürg Billeter * vala/valaerrortype.vala, vala/valasemanticanalyzer.vala: never use diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 8816c33..5d3d292 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -766,6 +766,8 @@ namespace GLib { public abstract class Boxed { } + public static delegate void ValueTransform (Value src_value, out Value dest_value); + [CCode (type_id = "G_TYPE_VALUE")] public struct Value { [CCode (cname = "G_VALUE_HOLDS")] @@ -778,6 +780,7 @@ namespace GLib { public Value (Type g_type); public void copy (out Value dest_value); public weak Value reset (); + public void init (Type g_type); public void unset (); public void set_instance (pointer instance); public bool fits_pointer (); @@ -787,6 +790,7 @@ namespace GLib { public bool transform (Value dest_value); [CCode (cname = "g_strdup_value_contents")] public string strdup_contents (); + public static void register_transform (Type src_type, Type dest_type, ValueTransform transform); public void set_boolean (bool v_boolean); public bool get_boolean (); public void set_char (char v_char); @@ -820,6 +824,10 @@ namespace GLib { public string dup_string (); public void set_pointer (pointer v_pointer); public pointer get_pointer (); + public void set_boxed (Boxed v_boxed); + public void take_boxed (Boxed# v_boxed); + public weak Boxed get_boxed (); + public Boxed dup_boxed (); public void set_object (Object v_object); public void take_object (Object# v_object); public weak Object get_object ();