blob: c0ffc2f6725ef34ea31e0d91d1f50e30ef6b4749 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|