summaryrefslogtreecommitdiffstats
path: root/include/afb
diff options
context:
space:
mode:
Diffstat (limited to 'include/afb')
-rw-r--r--include/afb/afb-request-itf.h2
-rw-r--r--include/afb/afb-request.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/afb/afb-request-itf.h b/include/afb/afb-request-itf.h
index f28788ee..4c62b3de 100644
--- a/include/afb/afb-request-itf.h
+++ b/include/afb/afb-request-itf.h
@@ -94,7 +94,7 @@ struct afb_request_itf
void *value,
void (*free_value)(void*));
- void (*addref)(
+ struct afb_request *(*addref)(
struct afb_request *request);
void (*unref)(
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);
}
/*