X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-user.h;h=b9171d345d6df68303a9c78a10d20024306c6c53;hb=6c605695506cc55fd77241308540c5e1a15d807c;hp=080354da74314c1aeb5ec2f6701ebeb78ff20e75;hpb=44a6b1b68029833893f6e9cee35aa27a974038f6;p=elogind.git diff --git a/src/login/logind-user.h b/src/login/logind-user.h index 080354da7..b9171d345 100644 --- a/src/login/logind-user.h +++ b/src/login/logind-user.h @@ -30,6 +30,7 @@ typedef struct User User; typedef enum UserState { USER_OFFLINE, /* Not logged in at all */ + USER_OPENING, /* Is logging in */ USER_LINGERING, /* Lingering has been enabled by the admin for this user */ USER_ONLINE, /* User logged in */ USER_ACTIVE, /* User logged in and has a session in the fg */ @@ -47,8 +48,12 @@ struct User { char *state_file; char *runtime_path; + char *service; - char *cgroup_path; + char *slice; + + char *service_job; + char *slice_job; Session *display; @@ -56,6 +61,7 @@ struct User { bool in_gc_queue:1; bool started:1; + bool closing:1; LIST_HEAD(Session, sessions); LIST_FIELDS(User, gc_queue); @@ -67,6 +73,7 @@ int user_check_gc(User *u, bool drop_not_started); void user_add_to_gc_queue(User *u); int user_start(User *u); int user_stop(User *u); +int user_finalize(User *u); UserState user_get_state(User *u); int user_get_idle_hint(User *u, dual_timestamp *t); int user_save(User *u);