From 6f1126ae2c585afc34d0bb06f3763e3a82ee3d37 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Mon, 29 May 2017 14:56:50 +0200 Subject: Cleanup legacy internal functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/afb/afb-req-itf.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'include/afb/afb-req-itf.h') 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); -} - -- cgit 1.2.3-korg