Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update C++ interface for afb_req_get_uid
[src/app-framework-binder.git]
/
include
/
afb
/
afb-binding.hpp
diff --git
a/include/afb/afb-binding.hpp
b/include/afb/afb-binding.hpp
index
6e062b2
..
6e7d4c2
100644
(file)
--- 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;
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);
}
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(); }
/* commons */
inline struct sd_event *get_event_loop()
{ return afb_daemon_get_event_loop_v2(); }