Change signal name about CoolDown mode 52/211352/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Aug 2019 22:52:59 +0000 (07:52 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Aug 2019 22:52:59 +0000 (07:52 +0900)
The CoolDown Mode signal interface is changed.

Change-Id: Iadf160456e48feb08f8d38c77c9abe4d59333d72
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/app_signal.h
src/app_signal.c

index e0da228..bca8684 100644 (file)
@@ -35,9 +35,9 @@
 #define SYSTEM_INTERFACE_CORE                  "org.tizen.system.deviced.core"
 #define SYSTEM_SIGNAL_BOOTING_DONE             "BootingDone"
 
-#define SYSTEM_PATH_SYSNOTI                    "/Org/Tizen/System/DeviceD/SysNoti"
-#define SYSTEM_INTERFACE_SYSNOTI               "org.tizen.system.deviced.SysNoti"
-#define SYSTEM_SIGNAL_COOLDOWN_CHANGED         "CoolDownChanged"
+#define SYSTEM_PATH_THERMAL                     "/Org/Tizen/System/Thermal"
+#define SYSTEM_INTERFACE_THERMAL                "org.tizen.system.thermal"
+#define SYSTEM_SIGNAL_COOLDOWN_MODE_CHANGED     "CoolDownModeChanged"
 
 #define TEP_BUS_NAME                           "org.tizen.system.deviced"
 #define TEP_OBJECT_PATH                                "/Org/Tizen/System/DeviceD/Tzip"
index 9e2fbb7..f4425bb 100644 (file)
@@ -74,7 +74,7 @@ static void __system_dbus_signal_handler(GDBusConnection *connection,
                if (status_handler)
                        status_handler((int)pid, (int)status, status_data);
        } else if (g_strcmp0(signal_name,
-                                       SYSTEM_SIGNAL_COOLDOWN_CHANGED) == 0) {
+                               SYSTEM_SIGNAL_COOLDOWN_MODE_CHANGED) == 0) {
                g_variant_get(parameters, "(s)", &cooldown_status);
 
                if (cooldown_handler)
@@ -260,9 +260,9 @@ API int aul_listen_cooldown_signal(int (*func)(const char *, void *),
 
        if (cooldown_handler && cooldown_subscription_id == 0) {
                cooldown_subscription_id = __system_dbus_register_signal(
-                                       SYSTEM_PATH_SYSNOTI,
-                                       SYSTEM_INTERFACE_SYSNOTI,
-                                       SYSTEM_SIGNAL_COOLDOWN_CHANGED);
+                                       SYSTEM_PATH_THERMAL,
+                                       SYSTEM_INTERFACE_THERMAL,
+                                       SYSTEM_SIGNAL_COOLDOWN_MODE_CHANGED);
                if (cooldown_subscription_id == 0)
                        return AUL_R_ERROR;
        } else if (cooldown_handler == NULL && cooldown_subscription_id) {