Add wrappers for accesses to internals
[src/app-framework-binder.git] / include / afb / afb-request.h
index 26b2ef1..fcab03c 100644 (file)
 
 #include "afb-request-itf.h"
 
-typedef struct afb_request afb_request;
+static inline struct afb_dynapi *afb_request_get_dynapi(struct afb_request *request)
+{
+       return request->dynapi;
+}
+
+static inline void *afb_request_get_vcbdata(struct afb_request *request)
+{
+       return request->vcbdata;
+}
+
+static inline const char *afb_request_get_api(struct afb_request *request)
+{
+       return request->api;
+}
+
+static inline const char *afb_request_get_verb(struct afb_request *request)
+{
+       return request->verb;
+}
 
 /*
  * Gets from the request 'request' the argument of 'name'.