blob: ffb4fba752c1032c075ca0f21e1aedf4aec4a25c [file] [log] [blame]
#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 */