#define DBUS_PMQOS_I_APPLAUNCH_HANDLER "handle_app_launch"
#define DBUS_PMQOS_I_ULTRAPOWERSAVING_HANDLER "handle_ultra_power_saving"
-#define DBUS_THERMAL_INTERFACE "org.tizen.system.pass.monitor.thermal"
-#define DBUS_THERMAL_PATH "/Org/Tizen/System/Pass/Monitor/Thermal"
+#define DBUS_THERMAL_INTERFACE "org.tizen.system.thermal"
+#define DBUS_THERMAL_PATH "/Org/Tizen/System/Thermal"
#define DBUS_THERMAL_I_START_HANDLER "handle_start"
#define DBUS_THERMAL_I_STOP_HANDLER "handle_stop"
-#define DBUS_THERMAL_METHOD "thermal_scenario"
+#define DBUS_THERMAL_SIGNAL "CoolDownModeChanged"
/* Dbus definition for systemd */
#define SYSTEMD_DBUS_NAME "org.freedesktop.systemd1"
void pass_gdbus_put_instance_core(SystemPassCore **instance);
SystemPassPmqos *pass_gdbus_get_instance_pmqos(void);
void pass_gdbus_put_instance_pmqos(SystemPassPmqos **instance);
-SystemPassMonitorThermal *pass_gdbus_get_instance_thermal(void);
-void pass_gdbus_put_instance_thermal(SystemPassMonitorThermal **instance);
+SystemThermal *pass_gdbus_get_instance_thermal(void);
+void pass_gdbus_put_instance_thermal(SystemThermal **instance);
int pass_gdbus_get_system_connection(void);
void pass_gdbus_put_system_connection(void);
#name=ReleaseAction
#support=yes
[thermal.scenario0]
-name=ReleaseAction
+name=Release
support=yes
[thermal.scenario1]
-name=WarningAction
+name=Warning
support=yes
[thermal.scenario2]
support=yes
[thermal.scenario3]
-name=ShutdownAction
+name=Shutdown
support=yes
<?xml version="1.0" encoding="UTF-8" ?>
-<node name="/Org/Tizen/System/Pass/Monitor/Thermal">
- <interface name="org.tizen.system.pass.monitor.thermal">
+<node name="/Org/Tizen/System/Thermal">
+ <interface name="org.tizen.system.thermal">
<method name="start">
<arg type="i" name="return_code" direction="out" />
</method>
put_instance((gpointer *)instance);
}
-SystemPassMonitorThermal *pass_gdbus_get_instance_thermal(void)
+SystemThermal *pass_gdbus_get_instance_thermal(void)
{
- return system_pass_monitor_thermal_skeleton_new();
+ return system_thermal_skeleton_new();
}
-void pass_gdbus_put_instance_thermal(SystemPassMonitorThermal **instance)
+void pass_gdbus_put_instance_thermal(SystemThermal **instance)
{
put_instance((gpointer *)instance);
}
* @brief Global instance indicating the Thermal Monitor D-Bus interface
* for PASS (Power Aware System Service)
*/
-static SystemPassMonitorThermal *g_gdbus_instance = NULL;
+static SystemThermal *g_gdbus_instance = NULL;
/**
* @brief Global instance indicating Thermal Monitor feature for PASS
* @param [in] user_data Not used
* @return @c true if success, otherwise @c false if fail
*/
-static gboolean dbus_cb_thermal_start(SystemPassMonitorThermal *obj,
+static gboolean dbus_cb_thermal_start(SystemThermal *obj,
GDBusMethodInvocation *invoc, gpointer user_data)
{
int ret = 0;
* @param [in] user_data Unused parameter
* @return @c true if success, otherwise @c false if fail
*/
-static gboolean dbus_cb_thermal_stop(SystemPassMonitorThermal *obj,
+static gboolean dbus_cb_thermal_stop(SystemThermal *obj,
GDBusMethodInvocation *invoc, gpointer user_data)
{
if (!g_thermal)
gvar = g_variant_new("(s)", data);
ret = pass_gdbus_send_broadcast_signal(DBUS_THERMAL_PATH,
DBUS_THERMAL_INTERFACE,
- DBUS_THERMAL_METHOD,
+ DBUS_THERMAL_SIGNAL,
gvar);
if (ret < 0) {
_E("failed to send broadcast signal of thermal monitor(%d)\n",