X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogind-session.h;h=8e394ac0d8f698eaa32a22b3d6d931fb06e1f223;hp=e58ff6fd8f53fa97b78e192f3b897b654bae58f6;hb=66ccd0387e528567dff92239e85c962d2f140ef1;hpb=b4f78aeac66e64e0489d7a26f1370a69d0fcf011 diff --git a/src/logind-session.h b/src/logind-session.h index e58ff6fd8..8e394ac0d 100644 --- a/src/logind-session.h +++ b/src/logind-session.h @@ -38,6 +38,13 @@ typedef enum SessionType { _SESSION_TYPE_INVALID = -1 } SessionType; +typedef enum KillWho { + KILL_LEADER, + KILL_ALL, + _KILL_WHO_MAX, + _KILL_WHO_INVALID = -1 +} KillWho; + struct Session { Manager *manager; @@ -98,6 +105,7 @@ int session_start(Session *s); int session_stop(Session *s); int session_save(Session *s); int session_load(Session *s); +int session_kill(Session *s, KillWho who, int signo); char *session_bus_path(Session *s); @@ -105,8 +113,12 @@ extern const DBusObjectPathVTable bus_session_vtable; int session_send_signal(Session *s, bool new_session); int session_send_changed(Session *s, const char *properties); +int session_send_lock(Session *s, bool lock); const char* session_type_to_string(SessionType t); SessionType session_type_from_string(const char *s); +const char *kill_who_to_string(KillWho k); +KillWho kill_who_from_string(const char *s); + #endif