api-v3: First draft
[src/app-framework-binder.git] / bindings / tutorial / tuto-1.c
index 433a4eb..1f58be6 100644 (file)
@@ -1,18 +1,18 @@
-#define AFB_BINDING_VERSION 2
+#define AFB_BINDING_VERSION 3
 #include <afb/afb-binding.h>
 
-void hello(afb_req req)
+void hello(afb_req_t req)
 {
        AFB_REQ_DEBUG(req, "hello world");
-       afb_req_success(req, NULL, "hello world");
+       afb_req_reply(req, NULL, NULL, "hello world");
 }
 
-const afb_verb_v2 verbs[] = {
+const afb_verb_t verbs[] = {
        { .verb="hello", .callback=hello },
        { .verb=NULL }
 };
 
-const afb_binding_v2 afbBindingV2 = {
+const afb_binding_t afbBindingExport = {
        .api = "tuto-1",
        .verbs = verbs
 };