summaryrefslogtreecommitdiffstats
path: root/src/warn.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-05-10 15:25:43 +0200
committerSimon Rettberg2019-05-10 15:25:43 +0200
commitf7cd45464fd7c037f6a60098ae77760998b3b4b6 (patch)
tree02cf10b2766fc5bb47e44d7253d4ec4eb4a674d3 /src/warn.h
downloadidle-daemon-f7cd45464fd7c037f6a60098ae77760998b3b4b6.tar.gz
idle-daemon-f7cd45464fd7c037f6a60098ae77760998b3b4b6.tar.xz
idle-daemon-f7cd45464fd7c037f6a60098ae77760998b3b4b6.zip
Initial commit
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
+