[vala] glib-2.0: Add GPrivate and GStaticPrivate bindings



commit 7af15e2d7cbf2925b17185e96d7e06c10f474332
Author: Andrea Del Signore <sejerpz tin it>
Date:   Mon Mar 30 09:40:04 2009 +0200

    glib-2.0: Add GPrivate and GStaticPrivate bindings
    
    Fixes bug 573043.
---
 vapi/glib-2.0.vapi |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 3392c6c..16c3560 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1350,6 +1350,21 @@ namespace GLib {
 	}
 
 	[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 {
 		public Cond ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]