X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-session.h;h=f175a8995ee4e29509626bacfe21ab130e874fc6;hp=edaae8d20ac43bbacbaf62aa00eb89ce49f77dd5;hb=118ecf32425a590ea266b5c2b6de7962bb242356;hpb=405e0255d5e6950180d9563f1a26294b5360db03 diff --git a/src/login/logind-session.h b/src/login/logind-session.h index edaae8d20..f175a8995 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -28,7 +28,9 @@ typedef enum KillWho KillWho; #include "util.h" #include "logind.h" #include "logind-seat.h" +#include "logind-session-device.h" #include "logind-user.h" +#include "login-shared.h" typedef enum SessionState { SESSION_OPENING, /* Session scope is being created */ @@ -105,6 +107,9 @@ struct Session { DBusMessage *create_message; + char *controller; + Hashmap *devices; + LIST_FIELDS(Session, sessions_by_user); LIST_FIELDS(Session, sessions_by_seat); @@ -153,3 +158,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_; + +bool session_is_controller(Session *s, const char *sender); +int session_set_controller(Session *s, const char *sender, bool force); +void session_drop_controller(Session *s);