-static const struct afb_verb_desc_v1 verbs[]= {
- {"ping" , AFB_SESSION_NONE, pingSample , "Ping Application Framework"},
- {"pingfail" , AFB_SESSION_NONE, pingFail , "Fails"},
- {"pingnull" , AFB_SESSION_NONE, pingNull , "Return NULL"},
- {"pingbug" , AFB_SESSION_NONE, pingBug , "Do a Memory Violation"},
- {"pingJson" , AFB_SESSION_NONE, pingJson , "Return a JSON object"},
- {"pingevent", AFB_SESSION_NONE, pingEvent , "Send an event"},
- {"subcall", AFB_SESSION_NONE, subcall , "Call api/verb(args)"},
- {"subcallsync", AFB_SESSION_NONE, subcallsync , "Call api/verb(args)"},
- {"eventadd", AFB_SESSION_NONE, eventadd , "adds the event of 'name' for the 'tag'"},
- {"eventdel", AFB_SESSION_NONE, eventdel , "deletes the event of 'tag'"},
- {"eventsub", AFB_SESSION_NONE, eventsub , "subscribes to the event of 'tag'"},
- {"eventunsub",AFB_SESSION_NONE, eventunsub , "unsubscribes to the event of 'tag'"},
- {"eventpush", AFB_SESSION_NONE, eventpush , "pushs the event of 'tag' with the 'data'"},
- {"exit", AFB_SESSION_NONE, exitnow , "exits from afb-daemon"},
- {NULL}
+static const struct afb_verb_v2 verbs[]= {
+ { "ping" , pingSample , NULL, AFB_SESSION_NONE },
+ { "pingfail" , pingFail , NULL, AFB_SESSION_NONE },
+ { "pingnull" , pingNull , NULL, AFB_SESSION_NONE },
+ { "pingbug" , pingBug , NULL, AFB_SESSION_NONE },
+ { "pingJson" , pingJson , NULL, AFB_SESSION_NONE },
+ { "pingevent", pingEvent , NULL, AFB_SESSION_NONE },
+ { "subcall", subcall , NULL, AFB_SESSION_NONE },
+ { "subcallsync", subcallsync, NULL, AFB_SESSION_NONE },
+ { "eventadd", eventadd , NULL, AFB_SESSION_NONE },
+ { "eventdel", eventdel , NULL, AFB_SESSION_NONE },
+ { "eventsub", eventsub , NULL, AFB_SESSION_NONE },
+ { "eventunsub", eventunsub , NULL, AFB_SESSION_NONE },
+ { "eventpush", eventpush , NULL, AFB_SESSION_NONE },
+ { "call", call , NULL, AFB_SESSION_NONE },
+ { "callsync", callsync , NULL, AFB_SESSION_NONE },
+ { "exit", exitnow , NULL, AFB_SESSION_NONE },
+ { NULL}