summaryrefslogtreecommitdiffstats
path: root/src/warn.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-12 16:21:45 +0200
committerSimon Rettberg2019-06-12 16:21:45 +0200
commit72dac079fbac16ea9dee6de544bdc7ed24a5e208 (patch)
treed53f1c175511f3c9bbe1343cddc8c7f2450df65d /src/warn.h
parentMake sure user promptly sees warning when using RPC (diff)
downloadidle-daemon-72dac079fbac16ea9dee6de544bdc7ed24a5e208.tar.gz
idle-daemon-72dac079fbac16ea9dee6de544bdc7ed24a5e208.tar.xz
idle-daemon-72dac079fbac16ea9dee6de544bdc7ed24a5e208.zip
Add RPC method "warn" to show messge to users
Only usable by root.
Diffstat (limited to 'src/warn.h')
-rw-r--r--src/warn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/warn.h b/src/warn.h
index c414378..43af832 100644
--- a/src/warn.h
+++ b/src/warn.h
@@ -14,5 +14,7 @@ enum Warning
void warnUser( struct user *usr, enum Warning what, int seconds );
+void showWarning( const struct user *usr, const char *title, const char *body );
+
#endif