]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add GHashTableIter binding
authorJürg Billeter <j@bitron.ch>
Fri, 10 Jul 2009 14:43:52 +0000 (15:43 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 10 Jul 2009 14:43:52 +0000 (15:43 +0100)
Based on patch by Yu Feng, fixes bug 571779.

vapi/glib-2.0.vapi

index 773275b146f353d57e3e9c0f3fe961a0d45f875f..d1d075f0deef7954ca1f171d4bc6554f65017ec5 100644 (file)
@@ -3145,6 +3145,14 @@ namespace GLib {
                public void steal_all ();
        }
 
+       public struct HashTableIter<K,V> {
+               public HashTableIter (GLib.HashTable<K,V> table);
+               public bool next (out unowned K key, out unowned V value);
+               public void remove ();
+               public void steal ();
+               public unowned GLib.HashTable<K,V> get_hash_table ();
+       }
+
        [CCode (has_target = false)]
        public static delegate uint HashFunc (void* key);
        [CCode (has_target = false)]