diff options
Diffstat (limited to 'src/userlist.h')
-rw-r--r-- | src/userlist.h | 31 |
1 files changed, 31 insertions, 0 deletions
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 <time.h> +#include <stdbool.h> + +#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 |