diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-05-29 14:56:50 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-05-29 14:56:50 +0200 |
commit | 6f1126ae2c585afc34d0bb06f3763e3a82ee3d37 (patch) | |
tree | 02b01bbdeaab1d0dff462eb3db108981d75eea3e /include/afb/afb-req-itf.h | |
parent | 090379fdaf6ed1860dcff21424135ad71ead0cd2 (diff) |
Cleanup legacy internal functions
The functions afb_req_raw and afb_req_send are
internal. They are now no more visible from
bindings.
Change-Id: I1f250a1800168a9c3772375477bf37a501f134a0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb/afb-req-itf.h')
-rw-r--r-- | include/afb/afb-req-itf.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/include/afb/afb-req-itf.h b/include/afb/afb-req-itf.h index 1d60daee..34d73dd2 100644 --- a/include/afb/afb-req-itf.h +++ b/include/afb/afb-req-itf.h @@ -56,8 +56,8 @@ struct afb_req_itf { void (*success)(void *closure, struct json_object *obj, const char *info); void (*fail)(void *closure, const char *status, const char *info); - const char *(*raw)(void *closure, size_t *size); - void (*send)(void *closure, const char *buffer, size_t size); + /*legacy raw */void (*spare1)(void *closure); + /*legacy send*/void (*spare2)(void *closure); void *(*context_get)(void *closure); void (*context_set)(void *closure, void *value, void (*free_value)(void*)); @@ -388,15 +388,3 @@ static inline int afb_req_subcall_sync(struct afb_req req, const char *api, cons return req.itf->subcallsync(req.closure, api, verb, args, result); } -/* internal use */ -static inline const char *afb_req_raw(struct afb_req req, size_t *size) -{ - return req.itf->raw(req.closure, size); -} - -/* internal use */ -static inline void afb_req_send(struct afb_req req, const char *buffer, size_t size) -{ - req.itf->send(req.closure, buffer, size); -} - |