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 conditionnal support of bindings version 2
[src/app-framework-binder.git]
/
src
/
afb-args.c
diff --git
a/src/afb-args.c
b/src/afb-args.c
index
2af77f3
..
1dc2e6c
100644
(file)
--- a/
src/afb-args.c
+++ b/
src/afb-args.c
@@
-381,7
+381,13
@@
static void printVersion(FILE * file)
#else
"-"
#endif
#else
"-"
#endif
- "VDYN +V2 +V3]\n"
+ "VDYN "
+#if WITH_LEGACY_BINDING_V2
+ "+"
+#else
+ "-"
+#endif
+ "V2 +V3]\n"
"\n",
AFB_VERSION
);
"\n",
AFB_VERSION
);
@@
-545,6
+551,7
@@
static int config_has_bool(struct json_object *config, int optid)
&& json_object_get_boolean(x);
}
&& json_object_get_boolean(x);
}
+__attribute__((unused))
static int config_has_str(struct json_object *config, int optid, const char *val)
{
int i, n;
static int config_has_str(struct json_object *config, int optid, const char *val)
{
int i, n;