]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Support syntactic sugar on HashTable
authorMichal Hruby <michal.mhr@gmail.com>
Sun, 31 Jul 2011 11:46:49 +0000 (13:46 +0200)
committerMichal Hruby <michal.mhr@gmail.com>
Sun, 31 Jul 2011 11:46:49 +0000 (13:46 +0200)
vapi/glib-2.0.vapi

index 5140ae035873481c337b986fb8d8beffa717eae7..f0ed5a9ffc78d841efe62c2fe3a8f494875fa687 100644 (file)
@@ -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);