X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-binding-v2.h;h=8831a434bf4983a76b36c40f5f5c04fe85a065d5;hb=e48b6fb595d90509d70f850244fc962f8440a14b;hp=e162aaa82ebda186c066100d3db2a436db258458;hpb=305d98f7b6db1a3207cc877bd2cda819e3b90656;p=src%2Fapp-framework-binder.git 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 */