summaryrefslogtreecommitdiffstats
path: root/include/afb/afb-req.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/afb/afb-req.h')
-rw-r--r--include/afb/afb-req.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/afb/afb-req.h b/include/afb/afb-req.h
index 71dd31d1..6f98e900 100644
--- a/include/afb/afb-req.h
+++ b/include/afb/afb-req.h
@@ -31,6 +31,14 @@ struct afb_req
};
/*
+ * Converts the 'req' to an afb_request.
+ */
+static inline struct afb_request *afb_req_to_request(struct afb_req req)
+{
+ return req.closure;
+}
+
+/*
* Checks whether the request 'req' is valid or not.
*
* Returns 0 if not valid or 1 if valid.