diff options
-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); |