X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-apis.c;h=9ffffdb3b5d22ed632f419c7e7df20bef83e09b4;hb=e94995611bd4e05a2aac1c0ae7c7f0855137b78a;hp=5a53d3752a35e31c0991b2692e0051aef6f2a82e;hpb=8ab18c9dd70205755b67001ce27a499c0196ad63;p=src%2Fapp-framework-binder.git diff --git a/src/afb-apis.c b/src/afb-apis.c index 5a53d375..9ffffdb3 100644 --- a/src/afb-apis.c +++ b/src/afb-apis.c @@ -38,14 +38,6 @@ struct api_desc { 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 @@ -178,7 +170,7 @@ void afb_apis_call(struct afb_req req, struct afb_context *context, const char * 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; }