X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-session.h;h=b315f01dcb63a9843c5fb68b21632d5dabe7a0a4;hb=ad0ff86c7c90c3d652edb7c81ebd3f07f70a9a07;hp=e09c95a8619da3421f6b40f274f3e0f9639fd7b1;hpb=81295bb5aced5d5350db11b0e9bb284e22d2ac37;p=elogind.git diff --git a/src/login/logind-session.h b/src/login/logind-session.h index e09c95a86..b315f01dc 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - #pragma once /*** @@ -25,8 +23,8 @@ typedef struct Session Session; typedef enum KillWho KillWho; #include "list.h" +#include "login-util.h" #include "logind-user.h" -#include "login-shared.h" typedef enum SessionState { SESSION_OPENING, /* Session scope is being created */ @@ -70,7 +68,7 @@ struct Session { Manager *manager; const char *id; - unsigned int pos; + unsigned int position; SessionType type; SessionClass class; @@ -89,8 +87,11 @@ struct Session { char *service; char *desktop; - /* Always NULL. */ + /* always NULL */ char *scope; +#if 0 /// UNNEEDED by elogind + char *scope_job; +#endif // 0 Seat *seat; unsigned int vtnr; @@ -117,6 +118,7 @@ struct Session { char *controller; Hashmap *devices; + sd_bus_track *track; LIST_FIELDS(Session, sessions_by_user); LIST_FIELDS(Session, sessions_by_seat);