Fix rpm packaging following review 20926
[src/app-framework-binder.git] / bindings / tutorial / tuto-1.c
1 #define AFB_BINDING_VERSION 3
2 #include <afb/afb-binding.h>
3
4 void hello(afb_req_t req)
5 {
6         AFB_REQ_DEBUG(req, "hello world");
7         afb_req_reply(req, NULL, NULL, "hello world");
8 }
9
10 const afb_verb_t verbs[] = {
11         { .verb="hello", .callback=hello },
12         { .verb=NULL }
13 };
14
15 const afb_binding_t afbBindingExport = {
16         .api = "tuto-1",
17         .verbs = verbs
18 };
19