#include <fnmatch.h>
#include <vconf-keys.h>
#include <sys/time.h>
-#include <device/power.h>
#include "ambient-mode.h"
#include "util.h"
int holdkey_block, ret;
bool value = true;
unsigned int flags;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (state == S_START)
_I("[%s] locked by %5d with %u ms", states[state].name, pid, data->timeout);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerLock.");
bool value = false;
unsigned int flags;
int ret;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (!state)
_I("[%s] unlocked by %5d", states[state].name, pid);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerUnlock.");
#include <fnmatch.h>
#include <vconf-keys.h>
#include <sys/time.h>
-#include <device/power.h>
#include "ambient-mode.h"
#include "util.h"
int holdkey_block,ret;
bool value = true;
unsigned int flags;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (state == S_START)
_I("[%s] locked by %5d with %u ms", states[state].name, pid, data->timeout);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerLock.");
bool value = false;
unsigned int flags;
int ret;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (!state)
_I("[%s] unlocked by %5d", states[state].name, pid);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerUnlock.");
#include <fnmatch.h>
#include <vconf-keys.h>
#include <sys/time.h>
-#include <device/power.h>
#include "ambient-mode.h"
#include "util.h"
int holdkey_block, ret;
bool value = true;
unsigned int flags;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (state == S_START)
_I("[%s] locked by %5d with %u ms", states[state].name, pid, data->timeout);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerLock.");
bool value = false;
unsigned int flags;
int ret;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (!state)
_I("[%s] unlocked by %5d", states[state].name, pid);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerUnlock.");
#include <fnmatch.h>
#include <vconf-keys.h>
#include <sys/time.h>
-#include <device/power.h>
#include "ambient-mode.h"
#include "util.h"
int holdkey_block, ret;
bool value = true;
unsigned int flags;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (state == S_START)
_I("[%s] locked by %5d with %u ms", states[state].name, pid, data->timeout);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerLock.");
bool value = false;
unsigned int flags;
int ret;
- power_lock_e lock_type;
+ char *lock_type;
state = GET_COND_STATE(data->cond);
if (!state)
_I("[%s] unlocked by %5d", states[state].name, pid);
/* for debug */
if (state == S_LCDOFF)
- lock_type = POWER_LOCK_CPU;
+ lock_type = PM_LCDOFF_STR;
else if (state == S_LCDDIM)
- lock_type = POWER_LOCK_DISPLAY_DIM;
+ lock_type = PM_LCDDIM_STR;
else if (state == S_NORMAL)
- lock_type = POWER_LOCK_DISPLAY;
+ lock_type = PM_LCDON_STR;
else
goto skip_broadcast_signal;
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
- g_variant_new("(iii)", lock_type, pid, (int)data->timeout));
+ g_variant_new("(sii)", lock_type, pid, (int)data->timeout));
if (ret < 0)
_E("Failed to send dbus signal PowerUnlock.");