summaryrefslogtreecommitdiff
path: root/mate-session/gsm-systemd.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-01-29 15:19:14 -0500
committerVictor Kareh <[email protected]>2019-02-04 07:52:05 -0500
commit37d538eba3a6b36a6d739de4b7567a97203ada3a (patch)
treea55f46441b3e3394a9378f9d7b02ac3075b31813 /mate-session/gsm-systemd.h
parent409d9fcc735f6dfd6ada9d90360e045130379259 (diff)
downloadmate-session-manager-37d538eba3a6b36a6d739de4b7567a97203ada3a.tar.bz2
mate-session-manager-37d538eba3a6b36a6d739de4b7567a97203ada3a.tar.xz
systemd: add api for detecting if this is the last session for a user
https://bugzilla.gnome.org/show_bug.cgi?id=764029 Adapted from https://gitlab.gnome.org/GNOME/gnome-session/commit/f708bbbf
Diffstat (limited to 'mate-session/gsm-systemd.h')
-rw-r--r--mate-session/gsm-systemd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mate-session/gsm-systemd.h b/mate-session/gsm-systemd.h
index 5d6b654..c00ec03 100644
--- a/mate-session/gsm-systemd.h
+++ b/mate-session/gsm-systemd.h
@@ -76,6 +76,8 @@ gboolean gsm_systemd_can_hibernate (GsmSystemd *manager);
gboolean gsm_systemd_can_suspend (GsmSystemd *manager);
+gboolean gsm_systemd_is_last_session_for_user (GsmSystemd *manager);
+
void gsm_systemd_attempt_stop (GsmSystemd *manager);
void gsm_systemd_attempt_restart (GsmSystemd *manager);