X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogind-session.h;h=e58ff6fd8f53fa97b78e192f3b897b654bae58f6;hb=b8590c197deceab623d37dbb95e30eec9cf47d14;hp=01c9504dd4aca5846024310e36ebf4bcfcdb7b9c;hpb=98a28fef2618e54a644614c759f371f297381b70;p=elogind.git diff --git a/src/logind-session.h b/src/logind-session.h index 01c9504dd..e58ff6fd8 100644 --- a/src/logind-session.h +++ b/src/logind-session.h @@ -31,9 +31,9 @@ typedef struct Session Session; #include "logind-user.h" typedef enum SessionType { + SESSION_UNSPECIFIED, SESSION_TTY, SESSION_X11, - SESSION_OTHER, _SESSION_TYPE_MAX, _SESSION_TYPE_INVALID = -1 } SessionType; @@ -65,7 +65,8 @@ struct Session { pid_t leader; uint32_t audit_id; - int pipe_fd; + int fifo_fd; + char *fifo_path; char *cgroup_path; char **controllers, **reset_controllers; @@ -85,12 +86,14 @@ struct Session { Session *session_new(Manager *m, User *u, const char *id); void session_free(Session *s); -int session_check_gc(Session *s); +int session_check_gc(Session *s, bool drop_not_started); void session_add_to_gc_queue(Session *s); int session_activate(Session *s); 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_save(Session *s);