summaryrefslogtreecommitdiff
path: root/src/systemd/sd-login.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-02-24 01:45:50 +0800
committerMike Yuan <me@yhndnzj.com>2023-02-24 02:12:36 +0800
commitc4ef14dc2a0eaae6b93d41e5c82f50ee86e480a4 (patch)
tree8047acb5c472a5be7178984de0874c5664f1cd2e /src/systemd/sd-login.h
parentd71f5b1217986a18e8ddaef3191afddfe731b2d7 (diff)
downloadsystemd-c4ef14dc2a0eaae6b93d41e5c82f50ee86e480a4.tar.gz
sd-login: add sd_session_get_start_time
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 fefc05667b..526af34d37 100644
--- a/src/systemd/sd-login.h
+++ b/src/systemd/sd-login.h
@@ -163,6 +163,9 @@ int sd_session_get_username(const char *session, char **username);
/* Determine seat of session */
int sd_session_get_seat(const char *session, char **seat);
+/* Determine the start time of session */
+int sd_session_get_start_time(const char *session, uint64_t *usec);
+
/* Determine the (PAM) service name this session was registered by. */
int sd_session_get_service(const char *session, char **service);