X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req.h;h=af33108cafcb452f5912765e7b86997fa26c842b;hb=bbe4fb7eff09dbc8bc6a7cfcde5653364e15d564;hp=6f98e900c31c9d96653ed1c058236af050a864cc;hpb=be63003e3f1841b43614f0e11b0a291e11f1dad1;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-req.h b/include/afb/afb-req.h index 6f98e900..af33108c 100644 --- a/include/afb/afb-req.h +++ b/include/afb/afb-req.h @@ -420,3 +420,14 @@ static inline char *afb_req_get_application_id(struct afb_req req) return req.itf->get_application_id(req.closure); } +/* + * Get the user identifier (UID) of the client application for the + * request 'req'. + * + * Returns -1 when the application can not be identified. + */ +static inline int afb_req_get_uid(struct afb_req req) +{ + return req.itf->get_uid(req.closure); +} +