aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/afb-request.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-22 07:39:49 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:32 +0200
commit39a955678ac5f16646e5841a720d1d358600dabb (patch)
tree0010dc84e54508eee74efce06d1c420361f47ae5 /include/afb/afb-request.h
parent5928e8fc14c2edabc0bc104fff7542819e06d45a (diff)
Make addref for request return the pointer
Change-Id: I4286cbd9d02b406570185d265e7b925c43bbc42c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb/afb-request.h')
-rw-r--r--include/afb/afb-request.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/afb/afb-request.h b/include/afb/afb-request.h
index 052cbab9..c2585fc5 100644
--- a/include/afb/afb-request.h
+++ b/include/afb/afb-request.h
@@ -204,9 +204,9 @@ static inline void afb_request_context_clear(struct afb_request *request)
* This function MUST be called by asynchronous implementations
* of verbs if no reply was sent before returning.
*/
-static inline void afb_request_addref(struct afb_request *request)
+static inline struct afb_request *afb_request_addref(struct afb_request *request)
{
- request->itf->addref(request);
+ return request->itf->addref(request);
}
/*