summaryrefslogblamecommitdiffstats
path: root/src/userlist.h
blob: ca7a70bb652a686b328664be7b9615bc1f28fc5c (plain) (tree)


















                           
                      











                                                        
#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