From: Michal Hruby Date: Sun, 31 Jul 2011 11:46:49 +0000 (+0200) Subject: glib-2.0: Support syntactic sugar on HashTable X-Git-Tag: 0.13.2~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbd94a50f44bb47ca42a62eca4ec71409f9d68fb;p=thirdparty%2Fvala.git glib-2.0: Support syntactic sugar on HashTable --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 5140ae035..f0ed5a9ff 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 get_keys (); public List get_values (); public void @foreach (HFunc func);