X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=bindings%2Fsamples%2Ftic-tac-toe.c;fp=bindings%2Fsamples%2Ftic-tac-toe.c;h=bf4904ea74b58a4c519b36ac08ab32686e105f8d;hb=e48b6fb595d90509d70f850244fc962f8440a14b;hp=3cff9afc8511eed31be7793ceffee6f746aae608;hpb=305d98f7b6db1a3207cc877bd2cda819e3b90656;p=src%2Fapp-framework-binder.git diff --git a/bindings/samples/tic-tac-toe.c b/bindings/samples/tic-tac-toe.c index 3cff9afc..bf4904ea 100644 --- a/bindings/samples/tic-tac-toe.c +++ b/bindings/samples/tic-tac-toe.c @@ -564,16 +564,15 @@ static void wait(struct afb_req req) * array of the verbs exported to afb-daemon */ static const struct afb_verb_v2 verbs[] = { - /* VERB'S NAME SESSION MANAGEMENT FUNCTION TO CALL SHORT DESCRIPTION */ - { "new", new, NULL, AFB_SESSION_NONE }, - { "play", play, NULL, AFB_SESSION_NONE }, - { "move", move, NULL, AFB_SESSION_NONE }, - { "board", board, NULL, AFB_SESSION_NONE }, - { "level", level, NULL, AFB_SESSION_NONE }, - { "join", join, NULL, AFB_SESSION_NONE }, - { "undo", undo, NULL, AFB_SESSION_NONE }, - { "wait", wait, NULL, AFB_SESSION_NONE }, - { NULL, NULL, NULL, AFB_SESSION_NONE } /* marker for end of the array */ + { .verb="new", .callback=new }, + { .verb="play", .callback=play }, + { .verb="move", .callback=move }, + { .verb="board", .callback=board }, + { .verb="level", .callback=level }, + { .verb="join", .callback=join }, + { .verb="undo", .callback=undo }, + { .verb="wait", .callback=wait }, + { .verb=NULL } }; /*