power: Apply hal-api-device-power module HAL ABI versioning 15/310015/1
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 19 Apr 2024 06:34:29 +0000 (15:34 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Fri, 19 Apr 2024 06:35:31 +0000 (15:35 +0900)
As HAL ABI versioning is applied to hal-api-device-power module,
data definition is changed in native API style.

Change-Id: I85890513217a52c926d81fe2c540743c02220bb6
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/display/display-panel.c
src/power/power-dbus.c
src/power/power-suspend.c
src/power/power-suspend.h

index 03f81d42acf0688e29a4138e86f3a23c918de5a0..0c40fdb1b0d2718606ab5d6fdcdd54516d6a4bda 100644 (file)
@@ -334,7 +334,7 @@ void display_panel_lcd_off_procedure(enum device_flags flag)
 
 void display_panel_lcd_on_direct(enum device_flags flags)
 {
-       enum hal_device_power_transition_reason reason;
+       hal_device_power_transition_reason_e reason;
 
        if (flags & LCD_ON_BY_POWER_KEY)
                reason = HAL_DEVICE_POWER_TRANSITION_REASON_POWER_KEY;
index d7e9feb648c42bdb49da7389137255291aa53a1a..6c87b0820cf82dccb5dab75962e53816407bd984 100644 (file)
@@ -496,7 +496,7 @@ static GVariant *dbus_power_get_wakeup_reason(GDBusConnection *conn,
        const gchar *sender, const gchar *path, const gchar *iface, const gchar *name,
        GVariant *param, GDBusMethodInvocation *invocation, gpointer user_data)
 {
-       enum hal_device_power_transition_reason wakeup_reason;
+       hal_device_power_transition_reason_e wakeup_reason;
        int retval;
 
        retval = hal_device_power_get_wakeup_reason(&wakeup_reason);
index b5f6b97865082bd1904435b80b56727dd494912f..61efd1fce3fb65f64e241bba922e5809e87048f9 100644 (file)
@@ -50,7 +50,7 @@ static int mainlock_status = POWER_UNLOCK;
 static int vital_service;
 static bool vital_sleep;
 static int vital_support = -2;
-static enum hal_device_power_transition_reason wakeup_reason = HAL_DEVICE_POWER_TRANSITION_REASON_UNKNOWN;
+static hal_device_power_transition_reason_e wakeup_reason = HAL_DEVICE_POWER_TRANSITION_REASON_UNKNOWN;
 
 #ifdef ENABLE_PM_LOG
 
@@ -316,7 +316,7 @@ int power_release_wakelock(void)
        return sys_set_str(POWER_UNLOCK_PATH, "mainlock");
 }
 
-enum hal_device_power_transition_reason power_get_wakeup_reason(void)
+hal_device_power_transition_reason_e power_get_wakeup_reason(void)
 {
        return wakeup_reason;
 }
index 14e62aa2866d77e485a147ebb5957edf5f047719..aa73078b1628d9265a7fa8927e3bbfaa66abd94c 100644 (file)
@@ -53,7 +53,7 @@ int power_acquire_wakelock(void);
 int power_release_wakelock(void);
 int pm_get_power_lock(void);
 int pm_get_power_lock_support(void);
-enum hal_device_power_transition_reason power_get_wakeup_reason(void);
+hal_device_power_transition_reason_e power_get_wakeup_reason(void);
 int check_wakeup_src(void);
 int get_wakeup_count(int *cnt);
 int set_wakeup_count(int cnt);