]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add GPrivate and GStaticPrivate bindings
authorAndrea Del Signore <sejerpz@tin.it>
Mon, 30 Mar 2009 07:40:04 +0000 (09:40 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 30 Mar 2009 07:40:04 +0000 (09:40 +0200)
Fixes bug 573043.

vapi/glib-2.0.vapi

index 3392c6ce17a3f30df40abbfdd8f87fe0eb8abcc2..16c3560f6afefd57879d0d8d37085d37d1cbd9cb 100644 (file)
@@ -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 {