From f7cd45464fd7c037f6a60098ae77760998b3b4b6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 10 May 2019 15:25:43 +0200 Subject: Initial commit --- src/userlist.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/userlist.h (limited to 'src/userlist.h') diff --git a/src/userlist.h b/src/userlist.h new file mode 100644 index 0000000..c0ffc2f --- /dev/null +++ b/src/userlist.h @@ -0,0 +1,31 @@ +#ifndef _USER_LIST_H_ +#define _USER_LIST_H_ + +#include +#include + +#define STRLEN (40) +#define AUTHLEN (128) + +struct user { + time_t lastActivity; + time_t lockTime; + time_t lastWarn; + time_t logoutTime; + pid_t sessionLeader; + pid_t sessionHead; + int lastWarnLevel; + int lastActivityOffset; + int lockTimeOffset; + bool mark; + bool isLocked; + char user[STRLEN]; + char device[STRLEN]; + char display[STRLEN]; + char sessionName[STRLEN]; + char xauth[AUTHLEN]; +}; + +int getUserList( struct user *outbuf, int numElements ); + +#endif -- cgit v1.2.3-55-g7522