static struct api_desc *apis_array = NULL;
static int apis_count = 0;
-/**
- * Returns the current count of APIs
- */
-int afb_apis_count()
-{
- return apis_count;
-}
-
/**
* Checks wether 'name' is a valid API name.
* @return 1 if valid, 0 otherwise
c = strcasecmp(a->name, api);
if (c == 0) {
/* api found */
- context->api_index = i;
+ context->api_key = a->api.closure;
a->api.call(a->api.closure, req, context, verb);
break;
}