X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-session.h;h=f78f30956d2ba9b1d05bc3834f696b2ab512664c;hb=d9c67ea112724e271c39553d966eae612e272e34;hp=202d28752f0ca6bea96af189fa173eebc34bc4f2;hpb=d9eb81f9844f6d28b52e44b2c0e6e280a61d8200;p=elogind.git diff --git a/src/login/logind-session.h b/src/login/logind-session.h index 202d28752..f78f30956 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -55,6 +55,7 @@ typedef enum SessionType { SESSION_TTY, SESSION_X11, SESSION_WAYLAND, + SESSION_MIR, _SESSION_TYPE_MAX, _SESSION_TYPE_INVALID = -1 } SessionType; @@ -87,6 +88,7 @@ struct Session { char *remote_user; char *remote_host; char *service; + char *desktop; char *scope; char *scope_job; @@ -109,9 +111,12 @@ struct Session { bool in_gc_queue:1; bool started:1; + bool stopping:1; sd_bus_message *create_message; + sd_event_source *timer_event_source; + char *controller; Hashmap *devices; @@ -131,10 +136,10 @@ bool session_is_active(Session *s); int session_get_idle_hint(Session *s, dual_timestamp *t); void session_set_idle_hint(Session *s, bool b); int session_create_fifo(Session *s); -void session_remove_fifo(Session *s); int session_start(Session *s); -int session_stop(Session *s); +int session_stop(Session *s, bool force); int session_finalize(Session *s); +void session_release(Session *s); int session_save(Session *s); int session_load(Session *s); int session_kill(Session *s, KillWho who, int signo); @@ -165,7 +170,7 @@ SessionClass session_class_from_string(const char *s) _pure_; const char *kill_who_to_string(KillWho k) _const_; KillWho kill_who_from_string(const char *s) _pure_; -void session_mute_vt(Session *s); +void session_prepare_vt(Session *s); void session_restore_vt(Session *s); bool session_is_controller(Session *s, const char *sender);