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
Add function 'afb_req_get_application_id'
[src/app-framework-binder.git]
/
src
/
afb-hook.c
diff --git
a/src/afb-hook.c
b/src/afb-hook.c
index
92a4c82
..
188aaba
100644
(file)
--- a/
src/afb-hook.c
+++ b/
src/afb-hook.c
@@
-354,6
+354,11
@@
static void hook_xreq_has_permission_default_cb(void *closure, const struct afb_
_hook_xreq_(xreq, "has_permission(%s) -> %d", permission, result);
}
_hook_xreq_(xreq, "has_permission(%s) -> %d", permission, result);
}
+static void hook_xreq_get_application_id_default_cb(void *closure, const struct afb_hookid *hookid, const struct afb_xreq *xreq, char *result)
+{
+ _hook_xreq_(xreq, "get_application_id() -> %s", result);
+}
+
static struct afb_hook_xreq_itf hook_xreq_default_itf = {
.hook_xreq_begin = hook_xreq_begin_default_cb,
.hook_xreq_end = hook_xreq_end_default_cb,
static struct afb_hook_xreq_itf hook_xreq_default_itf = {
.hook_xreq_begin = hook_xreq_begin_default_cb,
.hook_xreq_end = hook_xreq_end_default_cb,
@@
-378,7
+383,8
@@
static struct afb_hook_xreq_itf hook_xreq_default_itf = {
.hook_xreq_unstore = hook_xreq_unstore_default_cb,
.hook_xreq_subcall_req = hook_xreq_subcall_req_default_cb,
.hook_xreq_subcall_req_result = hook_xreq_subcall_req_result_default_cb,
.hook_xreq_unstore = hook_xreq_unstore_default_cb,
.hook_xreq_subcall_req = hook_xreq_subcall_req_default_cb,
.hook_xreq_subcall_req_result = hook_xreq_subcall_req_result_default_cb,
- .hook_xreq_has_permission = hook_xreq_has_permission_default_cb
+ .hook_xreq_has_permission = hook_xreq_has_permission_default_cb,
+ .hook_xreq_get_application_id = hook_xreq_get_application_id_default_cb
};
/******************************************************************************
};
/******************************************************************************
@@
-532,6
+538,12
@@
int afb_hook_xreq_has_permission(const struct afb_xreq *xreq, const char *permis
return result;
}
return result;
}
+char *afb_hook_xreq_get_application_id(const struct afb_xreq *xreq, char *result)
+{
+ _HOOK_XREQ_(get_application_id, xreq, result);
+ return result;
+}
+
/******************************************************************************
* section: hooking xreqs
*****************************************************************************/
/******************************************************************************
* section: hooking xreqs
*****************************************************************************/