summaryrefslogtreecommitdiffstats
path: root/plugins/samples/tic-tac-toe.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-27 14:57:29 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-27 15:00:18 +0200
commit146bb49ca5acf4bbd5d9841398030c29b4333cc6 (patch)
tree07e265635706ee7daed3411a07e42c15d880f344 /plugins/samples/tic-tac-toe.c
parent645b2320fb04edda76e5761a439c865994f36b3a (diff)
improves naming
Change-Id: If26d8b9af05c84bd24d0ac3ceb9a628a0039c2a6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/samples/tic-tac-toe.c')
-rw-r--r--plugins/samples/tic-tac-toe.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/samples/tic-tac-toe.c b/plugins/samples/tic-tac-toe.c
index 67cddcb6..4bae8d75 100644
--- a/plugins/samples/tic-tac-toe.c
+++ b/plugins/samples/tic-tac-toe.c
@@ -583,7 +583,7 @@ static void wait(struct afb_req req)
/*
* array of the verbs exported to afb-daemon
*/
-static const struct AFB_verb_desc_v1 verbs[] = {
+static const struct AFB_verb_desc_v1 plugin_verbs[] = {
/* VERB'S NAME SESSION MANAGEMENT FUNCTION TO CALL SHORT DESCRIPTION */
{ .name= "new", .session= AFB_SESSION_NONE, .callback= new, .info= "Starts a new game" },
{ .name= "play", .session= AFB_SESSION_NONE, .callback= play, .info= "Tells the server to play" },
@@ -593,8 +593,7 @@ static const struct AFB_verb_desc_v1 verbs[] = {
{ .name= "join", .session= AFB_SESSION_CHECK,.callback= join, .info= "Join a board" },
{ .name= "undo", .session= AFB_SESSION_NONE, .callback= undo, .info= "Undo the last move" },
{ .name= "wait", .session= AFB_SESSION_NONE, .callback= wait, .info= "Wait for a change" },
- /* marker for end of the array */
- { .name= NULL }
+ { .name= NULL } /* marker for end of the array */
};
/*
@@ -607,7 +606,7 @@ static const struct AFB_plugin plugin_description =
.v1= { /* fills the v1 field of the union when AFB_PLUGIN_VERSION_1 */
.prefix= "tictactoe", /* the API name (or plugin name or prefix) */
.info= "Sample tac-tac-toe game", /* short description of of the plugin */
- .verbs = verbs /* the array describing the verbs of the API */
+ .verbs = plugin_verbs /* the array describing the verbs of the API */
}
};