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
hooking: Add hook at global scope
[src/app-framework-binder.git]
/
src
/
genskel
/
genskel.c
diff --git
a/src/genskel/genskel.c
b/src/genskel/genskel.c
index
a2ed3e6
..
8b179aa
100644
(file)
--- a/
src/genskel/genskel.c
+++ b/
src/genskel/genskel.c
@@
-72,6
+72,7
@@
const char *api = NULL;
const char *scope = NULL;
const char *prefix = NULL;
const char *postfix = NULL;
const char *scope = NULL;
const char *prefix = NULL;
const char *postfix = NULL;
+char *capi = NULL;
int priv = -1;
int noconc = -1;
int priv = -1;
int noconc = -1;
@@
-283,7
+284,7
@@
void print_perms()
n = a_perms ? json_object_array_length(a_perms) : 0;
if (n) {
n = a_perms ? json_object_array_length(a_perms) : 0;
if (n) {
- printf("static const struct afb_auth _afb_auths_v2_%s[] = {\n" , api);
+ printf("static const struct afb_auth _afb_auths_v2_%s[] = {\n" ,
c
api);
i = 0;
while (i < n) {
printf("\t{ %s }", json_object_get_string(json_object_array_get_idx(a_perms, i)));
i = 0;
while (i < n) {
printf("\t{ %s }", json_object_get_string(json_object_array_get_idx(a_perms, i)));
@@
-306,7
+307,7
@@
struct json_object *new_perm(struct json_object *obj, const char *desc)
a_perms = json_object_new_array();
}
a_perms = json_object_new_array();
}
- asprintf(&b, "&_afb_auths_v2_%s[%d]", api, json_object_array_length(a_perms));
+ asprintf(&b, "&_afb_auths_v2_%s[%d]",
c
api, json_object_array_length(a_perms));
x = json_object_new_string(desc);
y = json_object_new_string(b);
json_object_array_add(a_perms, x);
x = json_object_new_string(desc);
y = json_object_new_string(b);
json_object_array_add(a_perms, x);
@@
-592,7
+593,6
@@
void process(char *filename)
{
char *desc;
const char *info;
{
char *desc;
const char *info;
- char *capi;
/* translate - */
if (!strcmp(filename, "-"))
/* translate - */
if (!strcmp(filename, "-"))
@@
-651,7
+651,13
@@
void process(char *filename)
);
enum_verbs(print_struct_verb);
printf(
);
enum_verbs(print_struct_verb);
printf(
- " { .verb = NULL }\n"
+ " {\n"
+ " .verb = NULL,\n"
+ " .callback = NULL,\n"
+ " .auth = NULL,\n"
+ " .info = NULL,\n"
+ " .session = 0\n"
+ " }\n"
"};\n"
);
printf(
"};\n"
);
printf(