X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogind-session.h;h=72f85caaaf3ca1f6d456f65c88b15c6167b0e6de;hb=a91e4e5337a46db3f0a4f1415c1b60285e5c33a3;hp=01c9504dd4aca5846024310e36ebf4bcfcdb7b9c;hpb=98a28fef2618e54a644614c759f371f297381b70;p=elogind.git diff --git a/src/logind-session.h b/src/logind-session.h index 01c9504dd..72f85caaa 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; @@ -91,6 +91,8 @@ 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_set_pipe_fd(Session *s, int fd); +void session_unset_pipe_fd(Session *s); int session_start(Session *s); int session_stop(Session *s); int session_save(Session *s);