PRInt32 numPrefs = prefArray.Count(); PRInt32 i; for (i=0; i < numPrefs; i++) { char *prefName = (char *)prefArray.ElementAt(i); (*callback)((char*)prefName, arg); }
nsPref::EnumerateChildren(const char *parent, PrefEnumerationFunc callback, void *arg) {       EnumerateData ed;    ed.parent = parent;    ed.callback = callback;    ed.arg = arg;    PL_HashTableEnumerateEntries(gHashTable, pref_enumChild, &ed);    return NS_OK;}