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
genskel: Add afb:: namespace prefix
[src/app-framework-binder.git]
/
src
/
devtools
/
genskel.c
diff --git
a/src/devtools/genskel.c
b/src/devtools/genskel.c
index
cc87398
..
c021fdf
100644
(file)
--- a/
src/devtools/genskel.c
+++ b/
src/devtools/genskel.c
@@
-331,7
+331,7
@@
struct json_object *decl_perm_a(enum optype op, struct json_object *obj)
struct json_object *x, *y;
if (cpp) {
struct json_object *x, *y;
if (cpp) {
- fmtstr = "auth_%s(%s, %s)";
+ fmtstr = "a
fb::a
uth_%s(%s, %s)";
opstr = op==And ? "and" : "or";
} else {
fmtstr = ".type = afb_auth_%s, .first = %s, .next = %s";
opstr = op==And ? "and" : "or";
} else {
fmtstr = ".type = afb_auth_%s, .first = %s, .next = %s";
@@
-363,7
+363,7
@@
struct json_object *decl_perm(struct json_object *obj)
return x;
if (json_object_object_get_ex(obj, "permission", &x)) {
return x;
if (json_object_object_get_ex(obj, "permission", &x)) {
- asprintf(&a, cpp ? "auth_permission(\"%s\")" : ".type = afb_auth_Permission, .text = \"%s\"", json_object_get_string(x));
+ asprintf(&a, cpp ? "a
fb::a
uth_permission(\"%s\")" : ".type = afb_auth_Permission, .text = \"%s\"", json_object_get_string(x));
y = new_perm(obj, a);
free(a);
}
y = new_perm(obj, a);
free(a);
}
@@
-375,7
+375,7
@@
struct json_object *decl_perm(struct json_object *obj)
}
else if (json_object_object_get_ex(obj, "not", &x)) {
x = decl_perm(x);
}
else if (json_object_object_get_ex(obj, "not", &x)) {
x = decl_perm(x);
- asprintf(&a, cpp ? "auth_not(%s)" : ".type = afb_auth_Not, .first = %s", json_object_get_string(x));
+ asprintf(&a, cpp ? "a
fb::a
uth_not(%s)" : ".type = afb_auth_Not, .first = %s", json_object_get_string(x));
y = new_perm(obj, a);
free(a);
}
y = new_perm(obj, a);
free(a);
}