[vala] glib-2.0: Support syntactic sugar on HashTable



commit bbd94a50f44bb47ca42a62eca4ec71409f9d68fb
Author: Michal Hruby <michal mhr gmail com>
Date:   Sun Jul 31 13:46:49 2011 +0200

    glib-2.0: Support syntactic sugar on HashTable

 vapi/glib-2.0.vapi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 5140ae0..f0ed5a9 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3878,6 +3878,10 @@ namespace GLib {
 		public bool lookup_extended (K lookup_key, out unowned K orig_key, out unowned V value);
 		public bool remove (K key);
 		public void remove_all ();
+		[CCode (cname = "g_hash_table_lookup")]
+		public unowned V? @get (K key);
+		[CCode (cname = "g_hash_table_insert")]
+		public void @set (owned K key, owned V value);
 		public List<unowned K> get_keys ();
 		public List<unowned V> get_values ();
 		public void @foreach (HFunc<K,V> func);



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