aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-12-21 16:56:31 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-01-03 09:41:41 +0100
commit3c7a1f5c28c23e5d0a933db19993d9c71fe6a3a2 (patch)
treeac7779cc6d35c6435d98af47b188876487aa8621
parent4e0bac794d9aabd3fa5ff1883152ea0ea41031f7 (diff)
genskel: Add afb:: namespace prefix
Change-Id: I0cd2d09f97fac7a1976d2bfcd5ab616472bf970a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/devtools/genskel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devtools/genskel.c b/src/devtools/genskel.c
index cc873986..c021fdfc 100644
--- 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) {
- fmtstr = "auth_%s(%s, %s)";
+ fmtstr = "afb::auth_%s(%s, %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)) {
- asprintf(&a, cpp ? "auth_permission(\"%s\")" : ".type = afb_auth_Permission, .text = \"%s\"", json_object_get_string(x));
+ asprintf(&a, cpp ? "afb::auth_permission(\"%s\")" : ".type = afb_auth_Permission, .text = \"%s\"", json_object_get_string(x));
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);
- asprintf(&a, cpp ? "auth_not(%s)" : ".type = afb_auth_Not, .first = %s", json_object_get_string(x));
+ asprintf(&a, cpp ? "afb::auth_not(%s)" : ".type = afb_auth_Not, .first = %s", json_object_get_string(x));
y = new_perm(obj, a);
free(a);
}