summaryrefslogtreecommitdiff
path: root/qdict.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-10-13 13:56:58 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 08:49:39 -0600
commit21f800d340ae080435f08e762d7b2868204c3772 (patch)
tree894385bcf7f5784879782fbf7ad76e3997e2db9c /qdict.h
parent422c46a81d41748d5d944b68c4b81b58092ca34e (diff)
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 <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qdict.h')
-rw-r--r--qdict.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qdict.h b/qdict.h
index 3102ca296..14b26330f 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) \