diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-13 19:58:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-13 19:59:28 +0200 |
commit | de07ab16c6b919cead26c9a5209a362127ff6142 (patch) | |
tree | 9b4d4f674ae5fa607fb8516be541d16dcca9e9c8 /src/logind-session.h | |
parent | a17204af0e950be7a5199db62ef400814e29aa3c (diff) |
loginctl: implement missing kill verb
Diffstat (limited to 'src/logind-session.h')
-rw-r--r-- | src/logind-session.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/logind-session.h b/src/logind-session.h index d9f44ef0e0..8e394ac0d8 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); @@ -110,4 +118,7 @@ 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 |