#include <dlog.h>
#define _D(fmt, args...) SLOGD(fmt, ##args)
#define _I(fmt, args...) SLOGI(fmt, ##args)
+ #define _W(fmt, args...) SLOGW(fmt, ##args)
#define _E(fmt, args...) SLOGE(fmt, ##args)
#else
#define _D(x, ...)
#define _I(x, ...)
+ #define _W(x, ...)
#define _E(x, ...)
#endif
if (ret == 0 &&
(timeout_ms == 0 || timeout_ms > LOCK_CPU_TIMEOUT_MAX))
add_off_lock_timeout();
- } else if (type == POWER_LOCK_DISPLAY)
+ } else if (type == POWER_LOCK_DISPLAY) {
+ _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
ret = lock_state(DISPLAY_STATE_NORMAL, STAY_CUR_STATE, timeout_ms);
- else if (type == POWER_LOCK_DISPLAY_DIM)
+ } else if (type == POWER_LOCK_DISPLAY_DIM) {
+ _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
ret = lock_state(DISPLAY_STATE_SCREEN_DIM, STAY_CUR_STATE, timeout_ms);
- else
+ } else
return DEVICE_ERROR_INVALID_PARAMETER;
return errno_to_device_error(ret);
remove_off_lock_timeout();
remove_padding_timeout();
}
- } else if (type == POWER_LOCK_DISPLAY)
+ } else if (type == POWER_LOCK_DISPLAY) {
+ _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
ret = unlock_state(DISPLAY_STATE_NORMAL, PM_KEEP_TIMER);
- else if (type == POWER_LOCK_DISPLAY_DIM)
+ } else if (type == POWER_LOCK_DISPLAY_DIM) {
+ _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
ret = unlock_state(DISPLAY_STATE_SCREEN_DIM, PM_KEEP_TIMER);
- else
+ } else
return DEVICE_ERROR_INVALID_PARAMETER;
return errno_to_device_error(ret);
int device_power_wakeup(bool dim)
{
+ _W("DEPRECATION WARNING: device_power_wakeup() is deprecated and will be removed from next release.");
if (dim)
return device_display_change_state(DISPLAY_STATE_SCREEN_DIM);