X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-wsj1-test.cpp;h=c17b1ed08a1497cb9fae541b62400af83ce9d6a3;hb=60e362130fd89321f7bf1d168fb6d3b22fef799d;hp=059c845b56c5e77f2ef630ba1e6a9dc37488e602;hpb=9ed1400b1df1d645603f075529ff8e8c8154d145;p=src%2Fapp-framework-binder.git diff --git a/src/afb-wsj1-test.cpp b/src/afb-wsj1-test.cpp index 059c845b..c17b1ed0 100644 --- a/src/afb-wsj1-test.cpp +++ b/src/afb-wsj1-test.cpp @@ -5,12 +5,14 @@ void onreply(const char *value){ 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); - 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