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
Partial Test
[src/app-framework-binder.git]
/
src
/
afb-wsj1-test.cpp
diff --git
a/src/afb-wsj1-test.cpp
b/src/afb-wsj1-test.cpp
index
059c845
..
c17b1ed
100644
(file)
--- a/
src/afb-wsj1-test.cpp
+++ b/
src/afb-wsj1-test.cpp
@@
-5,12
+5,14
@@
void onreply(const char *value){
system("PAUSE");
}
system("PAUSE");
}
-int main(){
- std::string uri,api,verb, req;
- char * request = (char*)req.c_str();
+int main(int ac, char **av){
+ char*uri=av[0];
+ char*api =av[1];
+ char*verb =av[2];
+ char*req =av[3];
afb::wsj1 sj1;
sj1.connect(uri);
afb::wsj1 sj1;
sj1.connect(uri);
- sj1.call(api
.c_str(),verb.c_str(),request
,onreply);
+ sj1.call(api
,verb,req
,onreply);
return EXIT_SUCCESS;
}
\ No newline at end of file
return EXIT_SUCCESS;
}
\ No newline at end of file