diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-02-24 01:45:50 +0800 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-02-24 02:12:36 +0800 |
commit | c4ef14dc2a0eaae6b93d41e5c82f50ee86e480a4 (patch) | |
tree | 8047acb5c472a5be7178984de0874c5664f1cd2e /src/systemd/sd-login.h | |
parent | d71f5b1217986a18e8ddaef3191afddfe731b2d7 (diff) | |
download | systemd-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.h | 3 |
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); |