summaryrefslogtreecommitdiffstats
path: root/src/warn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/warn.h')
-rw-r--r--src/warn.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/warn.h b/src/warn.h
new file mode 100644
index 0000000..c414378
--- /dev/null
+++ b/src/warn.h
@@ -0,0 +1,18 @@
+#ifndef _WARN_H_
+#define _WARN_H_
+
+#include "userlist.h"
+
+enum Warning
+{
+ WARN_REBOOT = 0,
+ WARN_POWEROFF,
+ WARN_LOGOUT,
+ WARN_LOGOUT_LOW,
+ WARN_ENUM_END,
+};
+
+void warnUser( struct user *usr, enum Warning what, int seconds );
+
+#endif
+