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.
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);
}
/* 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==";
<?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>