[vala] glib-2.0.vapi: add new GHashTable API



commit 86d45e4e3d27b5ec59d7ebb04d4d6138bf2e32be
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Jan 6 10:30:28 2012 -0500

    glib-2.0.vapi: add new GHashTable API
    
    g_hash_table_add() and g_hash_table_contains() were just added to GLib
    so add them here.
    
    It's now possible to say 'if (key in table) { }'.

 vapi/glib-2.0.vapi |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index def6bcc..5532d33 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3914,8 +3914,10 @@ namespace GLib {
 		public HashTable.full (HashFunc<K>? hash_func, EqualFunc<K>? key_equal_func, DestroyNotify? key_destroy_func, DestroyNotify? value_destroy_func);
 		public void insert (owned K key, owned V value);
 		public void replace (owned K key, owned V value);
+		public void add (owned K key);
 		public unowned V? lookup (K key);
 		public bool lookup_extended (K lookup_key, out unowned K orig_key, out unowned V value);
+		public bool contains (K key);
 		public bool remove (K key);
 		public void remove_all ();
 		[CCode (cname = "g_hash_table_lookup")]



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