From 21f800d340ae080435f08e762d7b2868204c3772 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Tue, 13 Oct 2009 13:56:58 -0300 Subject: QDict: Introduce qdict_iter() This adds iterator support to QDict, it will be used by the (to be introduced) QError module. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- qdict.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qdict.h') diff --git a/qdict.h b/qdict.h index 3102ca296f..14b26330f7 100644 --- a/qdict.h +++ b/qdict.h @@ -27,6 +27,9 @@ void qdict_del(QDict *qdict, const char *key); int qdict_haskey(const QDict *qdict, const char *key); QObject *qdict_get(const QDict *qdict, const char *key); QDict *qobject_to_qdict(const QObject *obj); +void qdict_iter(const QDict *qdict, + void (*iter)(const char *key, QObject *obj, void *opaque), + void *opaque); /* Helper to qdict_put_obj(), accepts any object */ #define qdict_put(qdict, key, obj) \ -- cgit v1.2.3