diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-06-28 15:51:54 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-07-05 15:54:40 +0200 |
commit | d31bd193cb4eeb5dc4e383d610ef94a9855810b7 (patch) | |
tree | 8a9bd196bbb34e58402d06b7c5bee36b0ce8dbde /include/afb | |
parent | 17e428f46f0e093270be7eff79788e1575bcfb14 (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 'include/afb')
-rw-r--r-- | include/afb/afb-binding-v2.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/afb/afb-binding-v2.h b/include/afb/afb-binding-v2.h index e162aaa8..8831a434 100644 --- a/include/afb/afb-binding-v2.h +++ b/include/afb/afb-binding-v2.h @@ -36,9 +36,10 @@ struct json_object; */ struct afb_verb_v2 { - const char *verb; /* name of the verb */ + const char *verb; /* name of the verb, NULL only at end of the array */ void (*callback)(struct afb_req req); /* callback function implementing the verb */ - const struct afb_auth *auth; /* required authorisation */ + const struct afb_auth *auth; /* required authorisation, can be NULL */ + const char *info; /* some info about the verb, can be NULL */ uint32_t session; /* authorisation and session requirements of the verb */ }; @@ -48,7 +49,8 @@ struct afb_verb_v2 struct afb_binding_v2 { const char *api; /* api name for the binding */ - const char *specification; /* textual specification of the binding */ + const char *specification; /* textual specification of the binding, can be NULL */ + const char *info; /* some info about the api, can be NULL */ const struct afb_verb_v2 *verbs; /* array of descriptions of verbs terminated by a NULL name */ int (*preinit)(); /* callback at load of the binding */ int (*init)(); /* callback for starting the service */ |