chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: change default stdout/stderr to syslog
[elogind.git]
/
src
/
logind-session.h
diff --git
a/src/logind-session.h
b/src/logind-session.h
index e58ff6fd8f53fa97b78e192f3b897b654bae58f6..8e394ac0d8f698eaa32a22b3d6d931fb06e1f223 100644
(file)
--- a/
src/logind-session.h
+++ b/
src/logind-session.h
@@
-38,6
+38,13
@@
typedef enum SessionType {
_SESSION_TYPE_INVALID = -1
} 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;
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_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);
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_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* 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
#endif