static void json_object_foreach_internal (gpointer key, gpointer value, gpointer data) { ForeachClosure *clos = data; const gchar *member_name = key; JsonNode *member_node = value; clos->func (clos->object, member_name, member_node, clos->data); }
static void json_scanner_foreach_internal (gpointer _key, gpointer _value, gpointer _user_data) { JsonScannerKey *key = _value; ForeachClosure *closure = _user_data; if (key->scope_id == closure->scope_id) closure->func (key->symbol, key->value, closure->data); }