From c03789e3e7d41a6887018091a2c70e51e908235c Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 2 Aug 2019 07:52:59 +0900 Subject: [PATCH] Change signal name about CoolDown mode The CoolDown Mode signal interface is changed. Change-Id: Iadf160456e48feb08f8d38c77c9abe4d59333d72 Signed-off-by: Hwankyu Jhun --- include/app_signal.h | 6 +++--- src/app_signal.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/app_signal.h b/include/app_signal.h index e0da228..bca8684 100644 --- a/include/app_signal.h +++ b/include/app_signal.h @@ -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" diff --git a/src/app_signal.c b/src/app_signal.c index 9e2fbb7..f4425bb 100644 --- a/src/app_signal.c +++ b/src/app_signal.c @@ -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) { -- 2.7.4