summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-07 13:49:34 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-13 12:59:29 +0200
commit3d0ef5c7e00155bc74f6f71c34cad518a4ff56ba (patch)
tree772cbf4e0f0182300392d75534d4a9ee21e4fdc3 /src/login/logind.h
parent238794b15082e6f61d0ce2943d39205289fff7f0 (diff)
downloadsystemd-3d0ef5c7e00155bc74f6f71c34cad518a4ff56ba.tar.gz
logind: optionally watch utmp for login data
This allows us to determine the TTY an ssh session is for, which is useful to to proper idle detection for ssh sessions. Fixes: #9622
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index 9bdfbdfeee..0cccecb5ed 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -44,6 +44,10 @@ struct Manager {
sd_event_source *udev_vcsa_event_source;
sd_event_source *udev_button_event_source;
+#if ENABLE_UTMP
+ sd_event_source *utmp_event_source;
+#endif
+
int console_active_fd;
unsigned n_autovts;
@@ -151,6 +155,10 @@ bool manager_is_docked_or_external_displays(Manager *m);
bool manager_is_on_external_power(void);
bool manager_all_buttons_ignored(Manager *m);
+int manager_read_utmp(Manager *m);
+void manager_connect_utmp(Manager *m);
+void manager_reconnect_utmp(Manager *m);
+
extern const sd_bus_vtable manager_vtable[];
int match_job_removed(sd_bus_message *message, void *userdata, sd_bus_error *error);