/* This function allows the user to provide an iterator, which will be called for each stored value in the dictionary.  */
void qdict_iter(const QDict *qdict, void(*iter)(const char *key, QObject *obj, void *opaque), void *opaque)
/* This function allows the user to provide an iterator, which will be called for each stored value in the dictionary.  */
void qdict_iter(const QDict *qdict, void(*iter)(const char *key, QObject *obj, void *opaque), void *opaque)
{
    int i;
    QDictEntry *entry;
    for (i = 0; i < QDICT_BUCKET_MAX; i++) {
        QLIST_FOREACH(entry, &qdict->table[i], next)
            iter(entry->key, entry->value, opaque);
    }
}