summaryrefslogblamecommitdiffstats
path: root/src/userlist.h
blob: c0ffc2f6725ef34ea31e0d91d1f50e30ef6b4749 (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;
    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