Add the function afb_req_get_uid
[src/app-framework-binder.git] / include / afb / afb-request.h
index fcab03c..f9a1bbb 100644 (file)
@@ -376,3 +376,14 @@ static inline char *afb_request_get_application_id(struct afb_request *request)
        return request->itf->get_application_id(request);
 }
 
+/*
+ * Get the user identifier (UID) of the client for the
+ * request 'request'.
+ *
+ * Returns -1 when the application can not be identified.
+ */
+static inline int afb_request_get_uid(struct afb_request *request)
+{
+       return request->itf->get_uid(request);
+}
+