Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afs-supervisor: Improve comments
[src/app-framework-binder.git]
/
bindings
/
tutorial
/
tuto-1.c
diff --git
a/bindings/tutorial/tuto-1.c
b/bindings/tutorial/tuto-1.c
index
433a4eb
..
1f58be6
100644
(file)
--- a/
bindings/tutorial/tuto-1.c
+++ b/
bindings/tutorial/tuto-1.c
@@
-1,18
+1,18
@@
-#define AFB_BINDING_VERSION
2
+#define AFB_BINDING_VERSION
3
#include <afb/afb-binding.h>
#include <afb/afb-binding.h>
-void hello(afb_req req)
+void hello(afb_req
_t
req)
{
AFB_REQ_DEBUG(req, "hello world");
{
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 }
};
{ .verb="hello", .callback=hello },
{ .verb=NULL }
};
-const afb_binding_
v2 afbBindingV2
= {
+const afb_binding_
t afbBindingExport
= {
.api = "tuto-1",
.verbs = verbs
};
.api = "tuto-1",
.verbs = verbs
};