summaryrefslogtreecommitdiff
path: root/src/systemd/sd-login.h
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagn@redhat.com>2013-09-11 18:48:20 +0200
committerLennart Poettering <lennart@poettering.net>2013-09-11 19:08:20 +0200
commit44ded3abc28620279633f51a05f2416e5aa3e8e2 (patch)
treede6c3f0873348fcdb869f78deeb5bcd6957f6b83 /src/systemd/sd-login.h
parent4c3a31668e4f3be9a35177a35d5b9794cdff663e (diff)
sd-login: add a public accessor for the VT number
The VT number was already part of the DBus API, but was not exposed in the C API.
Diffstat (limited to 'src/systemd/sd-login.h')
-rw-r--r--src/systemd/sd-login.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h
index e37aeda2b..c5837f0ca 100644
--- a/src/systemd/sd-login.h
+++ b/src/systemd/sd-login.h
@@ -124,6 +124,9 @@ int sd_session_get_display(const char *session, char **display);
/* Determine the TTY of this session. */
int sd_session_get_tty(const char *session, char **display);
+/* Determine the VT number of this session. */
+int sd_session_get_vt(const char *session, unsigned *vtnr);
+
/* Return active session and user of seat */
int sd_seat_get_active(const char *seat, char **session, uid_t *uid);