X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-session.h;h=e62b76d66fcb4f27eb146feaceaac2406c4ef211;hb=601185b43da638b1c74153deae01dbd518680889;hp=f78f30956d2ba9b1d05bc3834f696b2ab512664c;hpb=8b8fa8b80c6b306b9ca249fa3ef64e83f49efa35;p=elogind.git diff --git a/src/login/logind-session.h b/src/login/logind-session.h index f78f30956..e62b76d66 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -60,6 +60,8 @@ typedef enum SessionType { _SESSION_TYPE_INVALID = -1 } SessionType; +#define SESSION_TYPE_IS_GRAPHICAL(type) IN_SET(type, SESSION_X11, SESSION_WAYLAND, SESSION_MIR) + enum KillWho { KILL_LEADER, KILL_ALL, @@ -70,7 +72,7 @@ enum KillWho { struct Session { Manager *manager; - char *id; + const char *id; unsigned int pos; SessionType type; SessionClass class;