blob: ffb4fba752c1032c075ca0f21e1aedf4aec4a25c [file] [log] [blame]
Pranav Vashi49ee54b2016-03-20 12:23:13 +05301#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
9struct state_event {
10 void *data;
11};
12
13extern bool state_suspended;
14extern void state_suspend(void);
15extern void state_resume(void);
16int state_register_client(struct notifier_block *nb);
17int state_unregister_client(struct notifier_block *nb);
18int state_notifier_call_chain(unsigned long val, void *v);
19
20#endif /* _LINUX_STATE_NOTIFIER_H */