summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2019-08-02 07:52:59 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2019-08-02 07:52:59 +0900
commitc03789e3e7d41a6887018091a2c70e51e908235c (patch)
tree0883e140dd01d1b287eb6634f83bfe6f1ca6e4a1
parent9666feb29ea02b66746e15b98b706af7d363c37f (diff)
downloadaul-1-c03789e3e7d41a6887018091a2c70e51e908235c.tar.gz
aul-1-c03789e3e7d41a6887018091a2c70e51e908235c.tar.bz2
aul-1-c03789e3e7d41a6887018091a2c70e51e908235c.zip
Change signal name about CoolDown mode
The CoolDown Mode signal interface is changed. Change-Id: Iadf160456e48feb08f8d38c77c9abe4d59333d72 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--include/app_signal.h6
-rw-r--r--src/app_signal.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/include/app_signal.h b/include/app_signal.h
index e0da2282..bca86848 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 9e2fbb72..f4425bbb 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) {