replace gdbus to app_control 28/162428/1
authorSang-Hun Chung <sanghun.chung@samsung.com>
Fri, 1 Dec 2017 04:35:16 +0000 (13:35 +0900)
committerSang-Hun Chung <sanghun.chung@samsung.com>
Fri, 1 Dec 2017 04:35:16 +0000 (13:35 +0900)
Change-Id: I86990dc1ccafd4392e450e72ee3fd6076ad72c8b

README
src/cloud-application.c
tizen-manifest.xml

diff --git a/README b/README
index 2c27fa2f16f1e455438bc288c38b5285b46ac819..cfc6d6e464e33f3ed4904f5f679a34a6d7665ce0 100644 (file)
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ ATTENTION
 If you happened to face build break, you should manually modify the library path of tizen-service-enabler-lib.  Porject > Properties > C/C++ Build > Settings > Tool Settings > C++ Linker > Libraries > Library search path (-L).  Please, add your own path there. Default is "../../tizen-service-enabler-lib/Debug". Absolue path is also fine. (check whether the library name is correct. -ltizen-service-enabler-lib is default)
 
 3. Check if include path is correct
-Next, please put your own path of tizen-service-enabler-lib into include path. See Porject > Properties > C/C++ Build > Settings > Tool Settings > C Compiler (or C++ Compiler) > Includes (-I). 
+Next, please put your own path of tizen-service-enabler-lib into include path. See Porject > Properties > C/C++ Build > Settings > Tool Settings > C Compiler (or C++ Compiler) > Includes (-I). (../../tizen-service-enabler-lib/inc)
 
 4. Check if platform architecture is correct
 In addition, if you are planning to make a package for i86(or arm), please make sure architecture of application is the same as that of library, (x86 or arm). You can modify the value in Project > Properties > C/C++ Build > Tizen Settings > Platform tab > Architecture.
index 9ffb924a1ce9a715448dd87da1668002d0df6032..4f198eff43dcc42d4505d7b67eba2602cda9b1d3 100755 (executable)
@@ -19,7 +19,7 @@ void service_app_terminate(void *data)
        return;
 }
 
-void bye_result_cb(int error, char *echo, void *user_data)
+void hello_result_cb(int error, char *echo, void *user_data)
 {
        DEBUG_LOG("error[%d], echo[%s], user_data[%p]", error, echo, user_data);
 }
@@ -29,21 +29,33 @@ void service_app_control(app_control_h app_control, void *data)
        /* static library function test */
        DEBUG_LOG("sum %d", test_sum(1,2));
 
+       int ret = 0;
 
-       /* sync api test using gdbus */
+
+       char *user_data = (char*) malloc(200);
+       ret = hello(hello_result_cb, &user_data);
+       DEBUG_LOG("===== ret [%d], user_data [%p]", ret, user_data);
+
+#if 0
        char *echo = NULL;
-       int ret = hello("How are you doing?", &echo);
-       DEBUG_LOG("ret [%d], echo [%s]", ret, echo);
+       ret = hello("How are you doing?", &echo);
+       DEBUG_LOG("===== ret [%d], echo [%s]", ret, echo);
+
+
        /* async api test using gdbus */
        char *dummy = (char*) malloc(200);
        DEBUG_LOG("user_data[%p]", dummy);
        ret = bye("see you in a bit", bye_result_cb, dummy);
-       DEBUG_LOG("ret[%d]", ret);
+       DEBUG_LOG("===== ret[%d]", ret);
+
+
+       ret = launch_run();
+       DEBUG_LOG("===== ret[%d]", ret);
 
        /* DB read test with shared data path */
 //     char *name;
 //     get_name_by_id(1, &name);
-
+#endif
        /* rest API test with curl */
 /*
        char *request_uri = "http://iotm-dev-core-external-elb-1621836102.ap-northeast-1.elb.amazonaws.com/api/v1/fota/downloadUrl/?currentVersion=111&token=ZjExNGM1MGUtMWE5YS00NDJiLWE2ZGItNmUzZGM0Y2I4MGE4LnppcA==";
index 9cd488fcb9dc3ceedacb3d0728dc6ab9e6d99d3e..5de2e139b238c93fe4929cc5fa433c9c3b19ac66 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="4.0" package="org.example.tizen-service-app" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.example.tizen-service-app" version="1.0.0">
     <profile name="mobile"/>
     <service-application appid="org.example.tizen-service-app" exec="tizen-service-app" multiple="false" nodisplay="true" taskmanage="false" type="capp">
         <label>tizen-service-app</label>