X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-session.h;h=f175a8995ee4e29509626bacfe21ab130e874fc6;hb=299404a19f26aa4f203042d8285ee0b7afa5bf40;hp=9cf64850be8bc72b90ac60b9fc09c88573192d2c;hpb=4b549144d82ea0f368321d149215f577049fffa6;p=elogind.git diff --git a/src/login/logind-session.h b/src/login/logind-session.h index 9cf64850b..f175a8995 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -28,6 +28,7 @@ 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" @@ -106,6 +107,9 @@ struct Session { DBusMessage *create_message; + char *controller; + Hashmap *devices; + LIST_FIELDS(Session, sessions_by_user); LIST_FIELDS(Session, sessions_by_seat); @@ -154,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);