| Pranav Vashi | 49ee54b | 2016-03-20 12:23:13 +0530 | [diff] [blame] | 1 | #ifndef __LINUX_STATE_NOTIFIER_H |
| 2 | #define __LINUX_STATE_NOTIFIER_H |
| 3 | |
| 4 | #include <linux/notifier.h> |
| 5 | |
| 6 | #define STATE_NOTIFIER_ACTIVE 0x01 |
| 7 | #define STATE_NOTIFIER_SUSPEND 0x02 |
| 8 | |
| 9 | struct state_event { |
| 10 | void *data; |
| 11 | }; |
| 12 | |
| 13 | extern bool state_suspended; |
| 14 | extern void state_suspend(void); |
| 15 | extern void state_resume(void); |
| 16 | int state_register_client(struct notifier_block *nb); |
| 17 | int state_unregister_client(struct notifier_block *nb); |
| 18 | int state_notifier_call_chain(unsigned long val, void *v); |
| 19 | |
| 20 | #endif /* _LINUX_STATE_NOTIFIER_H */ |