projects
/
platform
/
core
/
system
/
deviced.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0497d5911c7d0e70f57f0e4daa66a081f21a1150
[platform/core/system/deviced.git]
/
plugins
/
iot-headless
/
power
/
power-state-manager.h
1
#ifndef __POWER_STATE_MANAGER_H__
2
#define __POWER_STATE_MANAGER_H__
3
4
#include <stdio.h>
5
6
enum psm_state {
7
PSM_NORMAL,
8
PSM_SLEEP,
9
PSM_POWEROFF,
10
PSM_MAX,
11
};
12
13
struct trans_info {
14
int reason;
15
enum psm_state curr;
16
enum psm_state next;
17
};
18
19
typedef void (*psm_transfunc) (const struct trans_info *info);
20
void power_state_manager_init(void *data);
21
22
#endif //__POWER_STATE_MANAGER_H__