From: Andrea Del Signore Date: Mon, 30 Mar 2009 07:40:04 +0000 (+0200) Subject: glib-2.0: Add GPrivate and GStaticPrivate bindings X-Git-Tag: 0.6.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af15e2d7cbf2925b17185e96d7e06c10f474332;p=thirdparty%2Fvala.git glib-2.0: Add GPrivate and GStaticPrivate bindings Fixes bug 573043. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 3392c6ce1..16c3560f6 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1349,6 +1349,21 @@ namespace GLib { public void lock_full (); } + [Compact] + [CCode (ref_function = "", unref_function = "")] + public class Private { + public Private (DestroyNotify destroy_func); + public void* get (); + public void set (void* data); + } + + [CCode (destroy_function = "g_static_private_free")] + public struct StaticPrivate { + public StaticPrivate (); + public void* get (); + public void set (void* data, DestroyNotify destroy_func); + } + [Compact] [CCode (free_function = "g_cond_free")] public class Cond {