return timeout_src_id;
}
-void change_state_action(enum state_t state, int (*func)(int timeout))
-{
- _I("[%s] 'action' is changed.", states[state].name);
- states[state].action = func;
-}
-
-void change_state_trans(enum state_t state, int (*func)(int evt))
-{
- _I("[%s] 'trans' is changed.", states[state].name);
- states[state].trans = func;
-}
-
-void change_state_check(enum state_t state, int (*func)(int curr, int next))
-{
- _I("[%s] 'check' is changed.", states[state].name);
- states[state].check = func;
-}
-
-void change_state_name(enum state_t state, const char *name)
-{
- _I("[%s] 'name' is changed.", states[state].name);
- states[state].name = name;
-}
-
-void change_trans_table(enum state_t state, enum state_t next)
-{
- _I("[%s] 'timeout trans table' is changed.", states[state].name);
- trans_table[state][EVENT_TIMEOUT] = next;
-}
-
-void change_proc_change_state(int (*func)(unsigned int cond, pid_t pid))
-{
- _I("'proc change state' is changed.");
- proc_change_state = func;
-}
-
static int display_brightness_changed(void *data)
{
int brt, ret;
return timeout_src_id;
}
-void change_state_action(enum state_t state, int (*func)(int timeout))
-{
- _I("[%s] 'action' is changed.", states[state].name);
- states[state].action = func;
-}
-
-void change_state_trans(enum state_t state, int (*func)(int evt))
-{
- _I("[%s] 'trans' is changed.", states[state].name);
- states[state].trans = func;
-}
-
-void change_state_check(enum state_t state, int (*func)(int curr, int next))
-{
- _I("[%s] 'check' is changed.", states[state].name);
- states[state].check = func;
-}
-
-void change_state_name(enum state_t state, const char *name)
-{
- _I("[%s] 'name' is changed.", states[state].name);
- states[state].name = name;
-}
-
-void change_trans_table(enum state_t state, enum state_t next)
-{
- _I("[%s] 'timeout trans table' is changed.", states[state].name);
- trans_table[state][EVENT_TIMEOUT] = next;
-}
-
-void change_proc_change_state(int (*func)(unsigned int cond, pid_t pid))
-{
- _I("'proc change state' is changed.");
- proc_change_state = func;
-}
-
static int display_brightness_changed(void *data)
{
int brt, ret;
return timeout_src_id;
}
-void change_state_action(enum state_t state, int (*func)(int timeout))
-{
- _I("[%s] 'action' is changed.", states[state].name);
- states[state].action = func;
-}
-
-void change_state_trans(enum state_t state, int (*func)(int evt))
-{
- _I("[%s] 'trans' is changed.", states[state].name);
- states[state].trans = func;
-}
-
-void change_state_check(enum state_t state, int (*func)(int curr, int next))
-{
- _I("[%s] 'check' is changed.", states[state].name);
- states[state].check = func;
-}
-
-void change_state_name(enum state_t state, const char *name)
-{
- _I("[%s] 'name' is changed.", states[state].name);
- states[state].name = name;
-}
-
-void change_trans_table(enum state_t state, enum state_t next)
-{
- _I("[%s] 'timeout trans table' is changed.", states[state].name);
- trans_table[state][EVENT_TIMEOUT] = next;
-}
-
-void change_proc_change_state(int (*func)(unsigned int cond, pid_t pid))
-{
- _I("'proc change state' is changed.");
- proc_change_state = func;
-}
-
static int display_brightness_changed(void *data)
{
int brt, ret;
return timeout_src_id;
}
-void change_state_action(enum state_t state, int (*func)(int timeout))
-{
- _I("[%s] 'action' is changed.", states[state].name);
- states[state].action = func;
-}
-
-void change_state_trans(enum state_t state, int (*func)(int evt))
-{
- _I("[%s] 'trans' is changed.", states[state].name);
- states[state].trans = func;
-}
-
-void change_state_check(enum state_t state, int (*func)(int curr, int next))
-{
- _I("[%s] 'check' is changed.", states[state].name);
- states[state].check = func;
-}
-
-void change_state_name(enum state_t state, const char *name)
-{
- _I("[%s] 'name' is changed.", states[state].name);
- states[state].name = name;
-}
-
-void change_trans_table(enum state_t state, enum state_t next)
-{
- _I("[%s] 'timeout trans table' is changed.", states[state].name);
- trans_table[state][EVENT_TIMEOUT] = next;
-}
-
-void change_proc_change_state(int (*func)(unsigned int cond, pid_t pid))
-{
- _I("'proc change state' is changed.");
- proc_change_state = func;
-}
-
static int display_brightness_changed(void *data)
{
int brt, ret;
void set_lock_screen_bg_state(bool state);
/* core.c */
-void change_state_action(enum state_t state, int (*func)(int timeout));
-void change_state_trans(enum state_t state, int (*func)(int evt));
-void change_state_check(enum state_t state, int (*func)(int curr, int next));
-void change_state_name(enum state_t state, const char *name);
-void change_trans_table(enum state_t state, enum state_t next);
-void change_proc_change_state(int (*func)(unsigned int cond, pid_t pid));
-
int delete_condition(enum state_t state);
int custom_lcdoff(enum device_flags flag);
int display_on_by_reason(const char *reason, int timeout);