From: Ryan Lortie Date: Fri, 6 Jan 2012 15:30:28 +0000 (-0500) Subject: glib-2.0.vapi: add new GHashTable API X-Git-Tag: 0.15.1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86d45e4e3d27b5ec59d7ebb04d4d6138bf2e32be;p=thirdparty%2Fvala.git 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) { }'. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index def6bcc51..5532d337f 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -3914,8 +3914,10 @@ namespace GLib { public HashTable.full (HashFunc? hash_func, EqualFunc? 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")]