summaryrefslogtreecommitdiffstats
path: root/src/userlist.h
blob: ca7a70bb652a686b328664be7b9615bc1f28fc5c (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
32
#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;
    int loginctlFails;
    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