+/**
+ * Enumerate the api names to a callback.
+ * @param set the api set
+ * @param callback the function to call for each name
+ * @param closure the closure for the callback
+ */
+void afb_apiset_enum(struct afb_apiset *set, void (*callback)(struct afb_apiset *set, const char *name, void *closure), void *closure)
+{
+ int i;
+
+ for (i = 0 ; i < set->count ; i++)
+ callback(set, set->apis[i].name, closure);
+}
+