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
binding-wrap: Add verb initialisation for C++
[src/app-framework-binder.git]
/
bindings
/
tutorial
/
tuto-3.cpp
diff --git
a/bindings/tutorial/tuto-3.cpp
b/bindings/tutorial/tuto-3.cpp
index
66f8e83
..
8ad69ef
100644
(file)
--- a/
bindings/tutorial/tuto-3.cpp
+++ b/
bindings/tutorial/tuto-3.cpp
@@
-6,11
+6,10
@@
afb::event event_login, event_logout;
afb::event event_login, event_logout;
-void login(afb
_req_t r
)
+void login(afb
::req req
)
{
json_object *args, *user, *passwd;
char *usr;
{
json_object *args, *user, *passwd;
char *usr;
- afb::req req(r);
args = req.json();
if (!json_object_object_get_ex(args, "user", &user)
args = req.json();
if (!json_object_object_get_ex(args, "user", &user)
@@
-33,11
+32,10
@@
void login(afb_req_t r)
}
}
}
}
-void action(afb
_req_t r
)
+void action(afb
::req req
)
{
json_object *args, *val;
char *usr;
{
json_object *args, *val;
char *usr;
- afb::req req(r);
args = req.json();
// usr = (char*)req.context_get();
args = req.json();
// usr = (char*)req.context_get();
@@
-57,10
+55,9
@@
usr = nullptr;
req.success(json_object_get(args));
}
req.success(json_object_get(args));
}
-void logout(afb
_req_t r
)
+void logout(afb
::req req
)
{
char *usr;
{
char *usr;
- afb::req req(r);
// usr = (char*)req.context_get();
usr = nullptr;
// usr = (char*)req.context_get();
usr = nullptr;