diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-06-28 15:51:54 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-06-28 18:34:49 +0200 |
commit | e48b6fb595d90509d70f850244fc962f8440a14b (patch) | |
tree | f59f6f218761538278de3cbab842904c8bc18138 /src/monitor-api.inc | |
parent | 305d98f7b6db1a3207cc877bd2cda819e3b90656 (diff) |
Bindings V2: reintroduce field 'info' for verbs
CAUTION, this breaks binary compatibility
Change-Id: I67acfffe1f04cdddee0ad1230b227b080da1ab06
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/monitor-api.inc')
-rw-r--r-- | src/monitor-api.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/monitor-api.inc b/src/monitor-api.inc index 30d1ede6..e5fe5e53 100644 --- a/src/monitor-api.inc +++ b/src/monitor-api.inc @@ -50,13 +50,15 @@ static const struct afb_verb_v2 _afb_verbs_v2_monitor[] = { .verb = "get", .callback = f_get, .auth = &_afb_auths_v2_monitor[2], - .session = 0, + .info = NULL, + .session = AFB_SESSION_NONE_V2 }, { .verb = "set", .callback = f_set, .auth = &_afb_auths_v2_monitor[0], - .session = 0, + .info = NULL, + .session = AFB_SESSION_NONE_V2 }, { .verb = NULL } }; @@ -64,9 +66,11 @@ static const struct afb_verb_v2 _afb_verbs_v2_monitor[] = { static const struct afb_binding_v2 _afb_binding_v2_monitor = { .api = "monitor", .specification = _afb_description_v2_monitor, + .info = NULL, .verbs = _afb_verbs_v2_monitor, .preinit = NULL, .init = NULL, .onevent = NULL, + .noconcurrency = 0 }; |