[ITC][notification][Non-ACR][Use service_app_main()] 76/257676/1
authormanu.tiwari <manu.tiwari@samsung.com>
Thu, 29 Apr 2021 08:38:09 +0000 (14:08 +0530)
committermanu.tiwari <manu.tiwari@samsung.com>
Thu, 29 Apr 2021 08:41:23 +0000 (14:11 +0530)
Change-Id: I79ece0c130ba223fa1a7f565780c97509b95b7df
Signed-off-by: manu.tiwari <manu.tiwari@samsung.com>
packaging/itc/native-notification-itc.xml
src/itc/notification/tct-notification-native.c

index 78d1a0227031f9f7c69b75d8d6989ee999bbca73..9d44dd99af2a40f8dbc5910edb78749a9e56b5c6 100755 (executable)
@@ -3,14 +3,14 @@
     <label>CoreNotificationTest</label>
     <author email="mymail@tizentest.com" href="www.tizentest.com">test</author>
     <description>Native API test Application</description>
-    <ui-application appid="native.notification-itc" exec="/usr/apps/native-notification-itc/bin/tct-notification-native" nodisplay="false" multiple="false" type="capp" taskmanage="true">
+    <service-application appid="native.notification-itc" exec="/usr/apps/native-notification-itc/bin/tct-notification-native" nodisplay="false" multiple="false" type="capp" taskmanage="true">
     <background-category value="background-network"/>
        <background-category value="download"/>
        <background-category value="iot-communication"/>
        <background-category value="location"/>
        <background-category value="media"/>
        <background-category value="sensor"/>
-    </ui-application>
+    </service-application>
     <privileges>
       <privilege>http://tizen.org/privilege/notification</privilege>
       <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
index f72a9c501002b6bcd9035f3f503d375f8efc9d9b..3d5695a84e39e8660d4c3bee6e050637a72ace16 100755 (executable)
@@ -42,7 +42,7 @@
 #include <glib.h>
 #include <stdbool.h>
 
-#include <app.h>
+#include <service_app.h>
 #include <dlog.h>
 
 #include <sys/socket.h>
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
 {
        int ret = 0;
 
-       ui_app_lifecycle_callback_s event_callback = {0,};
+       service_app_lifecycle_callback_s event_callback = {0,};
        event_callback.create = app_create;
        event_callback.terminate = app_terminate;
        event_callback.app_control = app_control;
@@ -124,7 +124,7 @@ int main(int argc, char *argv[])
        dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Coverage *.gcda File location set to /tmp/home/abuild/rpmbuild/BUILD/ ", __FUNCTION__, __LINE__);
 
        dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Main Function is Invoked", __FUNCTION__, __LINE__);
-       ret = ui_app_main(argc, argv, &event_callback, NULL);
+       ret = service_app_main(argc, argv, &event_callback, NULL);
        if (ret != APP_ERROR_NONE)
        {
                dlog_print(DLOG_ERROR, "NativeTCT", "Application ui_app_main call gets failed. err = %d", ret);