X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-request.h;h=f9a1bbbba7899a2571c42bfd1ec6c6ec549cc346;hb=913e41d02977ee045490fbdcc94979c122c6a981;hp=fcab03c3085d3c3aa840b0010361bd8e24ef6a6b;hpb=2b037bbfd58046219d9cd083ae9422b9fc200ad4;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-request.h b/include/afb/afb-request.h index fcab03c3..f9a1bbbb 100644 --- a/include/afb/afb-request.h +++ b/include/afb/afb-request.h @@ -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); +} +