Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Luca Grifo <lg@linux.com> Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
21 lines
509 B
C
21 lines
509 B
C
#ifndef __LINUX_STATE_NOTIFIER_H
|
|
#define __LINUX_STATE_NOTIFIER_H
|
|
|
|
#include <linux/notifier.h>
|
|
|
|
#define STATE_NOTIFIER_ACTIVE 0x01
|
|
#define STATE_NOTIFIER_SUSPEND 0x02
|
|
|
|
struct state_event {
|
|
void *data;
|
|
};
|
|
|
|
extern bool state_suspended;
|
|
extern void state_suspend(void);
|
|
extern void state_resume(void);
|
|
int state_register_client(struct notifier_block *nb);
|
|
int state_unregister_client(struct notifier_block *nb);
|
|
int state_notifier_call_chain(unsigned long val, void *v);
|
|
|
|
#endif /* _LINUX_STATE_NOTIFIER_H */
|