From 4d8f7faa206e3d9235f8c92c640cb993cb5e171d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 4 May 2016 18:40:42 +0200 Subject: [PATCH] improves api MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Id76ab70174e758f26caf9f883595f6cc003147d3 Signed-off-by: José Bollo --- src/afb-apis.c | 5 +++++ src/afb-apis.h | 1 + 2 files changed, 6 insertions(+) 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); -- 2.16.6