]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add missing return of Queue.remove*() and add HashTable.foreach_steal()
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 12 Aug 2018 13:31:38 +0000 (15:31 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 12 Aug 2018 13:32:33 +0000 (15:32 +0200)
vapi/glib-2.0.vapi

index d3e38c544a6caf3c0c925689bd4378e02aa6f75c..29b05dd0d2697803ec8a66772742ac211bfcde33 100644 (file)
@@ -4659,9 +4659,9 @@ namespace GLib {
                [Version (since = "2.4")]
                public int index (G data);
                [Version (since = "2.4")]
-               public void remove (G data);
+               public bool remove (G data);
                [Version (since = "2.4")]
-               public void remove_all (G data);
+               public uint remove_all (G data);
                [Version (since = "2.4")]
                public void delete_link (List<G> link);
                [Version (since = "2.4")]
@@ -4789,6 +4789,7 @@ namespace GLib {
                [Version (since = "2.12")]
                public void remove_all ();
                public uint foreach_remove (HRFunc<K,V> predicate);
+               public uint foreach_steal (HRFunc<K,V> predicate);
                [CCode (cname = "g_hash_table_lookup")]
                public unowned V? @get (K key);
                [CCode (cname = "g_hash_table_insert")]