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
afb-monitor: Add session and rework permissions
[src/app-framework-binder.git]
/
src
/
afb-api.h
diff --git
a/src/afb-api.h
b/src/afb-api.h
index
c8cb2d6
..
ff1bc10
100644
(file)
--- a/
src/afb-api.h
+++ b/
src/afb-api.h
@@
-35,6
+35,12
@@
struct afb_api
{
void *closure;
struct afb_api_itf *itf;
{
void *closure;
struct afb_api_itf *itf;
+ const void *group;
};
};
-extern int afb_api_is_valid_name(const char *name);
+extern int afb_api_is_valid_name(const char *name, int hookable);
+
+#define AFB_API_UNHOOKABLE_PREFIX_CHAR '$'
+#define AFB_API_UNHOOKABLE_PREFIX_STRING "$"
+#define afb_api_is_hookable(api) ((api)[0] != AFB_API_UNHOOKABLE_PREFIX_CHAR)
+