1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#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 warn_showDefaultWarning( struct user *usr, enum Warning what, int seconds ); void warn_showCustomWarning( const struct user *usr, const char *title, const char *body ); #endif