blob: 189b0c24e52ea0fde8fda3d793b0c6ac02776576 (
plain) (
tree)
|
|
#ifndef _USER_LIST_H_
#define _USER_LIST_H_
#include <time.h>
#include <stdbool.h>
#define STRLEN (40)
#define AUTHLEN (160)
#define SAVERLEN (160)
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];
char saverFile[SAVERLEN];
};
int getUserList( struct user *outbuf, int numElements );
#endif
|