[vala] glib-2.0: Add HashTable.find method and HRFunc delegate.
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Add HashTable.find method and HRFunc delegate.
- Date: Fri, 17 Dec 2010 20:44:24 +0000 (UTC)
commit df2048a2f828a70eafe66f4361329e85372ae1a7
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Dec 17 21:42:35 2010 +0100
glib-2.0: Add HashTable.find method and HRFunc delegate.
Based on Alexander Krivács Schrøder patch.
Fixes bug 636786.
vapi/glib-2.0.vapi | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index d6ace50..f2c4a71 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3690,6 +3690,7 @@ namespace GLib {
public void @foreach (HFunc<K,V> func);
[CCode (cname = "g_hash_table_foreach")]
public void for_each (HFunc<K,V> func);
+ public unowned V find (HRFunc<K,V> predicate);
public uint size ();
public bool steal (K key);
public void steal_all ();
@@ -3708,6 +3709,7 @@ namespace GLib {
[CCode (has_target = false)]
public delegate bool EqualFunc<G> (G a, G b);
public delegate void HFunc<K,V> (K key, V value);
+ public delegate bool HRFunc<K,V> (K key, V value);
[CCode (has_target = false)]
public delegate void DestroyNotify (void* data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]