From: José Bollo Date: Wed, 4 May 2016 16:40:42 +0000 (+0200) Subject: improves api X-Git-Tag: blowfish_2.0.1~152 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=4d8f7faa206e3d9235f8c92c640cb993cb5e171d;hp=6b9b3b16ac738f99bddde3d7d375f9986bb1c09a;p=src%2Fapp-framework-binder.git improves api Change-Id: Id76ab70174e758f26caf9f883595f6cc003147d3 Signed-off-by: José Bollo --- diff --git a/src/afb-apis.c b/src/afb-apis.c index 2822575b..bcb42429 100644 --- a/src/afb-apis.c +++ b/src/afb-apis.c @@ -83,6 +83,11 @@ error: return -1; } +void afb_apis_call_(struct afb_req req, struct AFB_clientCtx *context, const char *api, const char *verb) +{ + afb_apis_call(req, context, api, strlen(api), verb, strlen(verb)); +} + void afb_apis_call(struct afb_req req, struct AFB_clientCtx *context, const char *api, size_t lenapi, const char *verb, size_t lenverb) { int i; diff --git a/src/afb-apis.h b/src/afb-apis.h index 985923f5..795054aa 100644 --- a/src/afb-apis.h +++ b/src/afb-apis.h @@ -30,5 +30,6 @@ struct afb_api extern int afb_apis_count(); extern int afb_apis_add(const char *name, struct afb_api api); extern void afb_apis_call(struct afb_req req, struct AFB_clientCtx *context, const char *api, size_t lenapi, const char *verb, size_t lenverb); +extern void afb_apis_call_(struct afb_req req, struct AFB_clientCtx *context, const char *api, const char *verb);