From d4227bd703ac28cae8c5860e358aea5f4d4de08e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 12 Jun 2017 13:53:34 +0200 Subject: [PATCH] Add comment for bindings v2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ic9c1e89f6f4f5a124ffb2dbb88a26dc5e8e1e543 Signed-off-by: José Bollo --- include/afb/afb-binding-v2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/afb/afb-binding-v2.h b/include/afb/afb-binding-v2.h index b1cff27c..68e6f789 100644 --- a/include/afb/afb-binding-v2.h +++ b/include/afb/afb-binding-v2.h @@ -50,9 +50,9 @@ struct afb_binding_v2 const char *api; /* api name for the binding */ const char *specification; /* textual specification of the binding */ const struct afb_verb_v2 *verbs; /* array of descriptions of verbs terminated by a NULL name */ - int (*preinit)(); - int (*init)(); - void (*onevent)(const char *event, struct json_object *object); + int (*preinit)(); /* callback at load of the binding */ + int (*init)(); /* callback for starting the service */ + void (*onevent)(const char *event, struct json_object *object); /* callback for handling events */ unsigned noconcurrency: 1; /* avoids concurrent requests to verbs */ }; -- 2.16.6