aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-10-11 10:13:32 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-11 10:13:32 +0200
commitbe16dc3a69d92bd79c2e4e9eab0cb2efc18256ba (patch)
treec151e8dac5bb479b06e08c1b912835a1699edb7c
parent04241c8168fe8826b4fc7a80500577b50936b57a (diff)
Update C++ interface for afb_req_get_uid
Change-Id: I8c281417bd08b49ac708a7992cb46a074e74c979 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--include/afb/afb-binding.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/afb/afb-binding.hpp b/include/afb/afb-binding.hpp
index 6e062b2e..6e7d4c2e 100644
--- a/include/afb/afb-binding.hpp
+++ b/include/afb/afb-binding.hpp
@@ -220,6 +220,8 @@ public:
bool has_permission(const char *permission) const;
char *get_application_id() const;
+
+ int get_uid() const;
};
/*************************************************************************/
@@ -403,6 +405,11 @@ inline char *req::get_application_id() const
return req_.itf->get_application_id(req_.closure);
}
+inline int req::get_uid() const
+{
+ return req_.itf->get_uid(req_.closure);
+}
+
/* commons */
inline struct sd_event *get_event_loop()
{ return afb_daemon_get_event_loop_v2(); }