diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-05-04 18:40:42 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-05-04 18:51:20 +0200 |
commit | 4d8f7faa206e3d9235f8c92c640cb993cb5e171d (patch) | |
tree | 7c4cf8c3353bc5643761f729a9918ebfab55d8fe | |
parent | 6b9b3b16ac738f99bddde3d7d375f9986bb1c09a (diff) |
improves api
Change-Id: Id76ab70174e758f26caf9f883595f6cc003147d3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-apis.c | 5 | ||||
-rw-r--r-- | src/afb-apis.h | 1 |
2 files changed, 6 insertions, 0 deletions
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); |