chiark / gitweb /
login: add new sd_session_get_type() and sd_session_get_class API calls
[elogind.git] / src / systemd / sd-login.h
index 7746c742ffd9123de089ba21807b70e37497c0bf..879e0744a87853fd61027a47becb35ce650c40b9 100644 (file)
@@ -90,6 +90,12 @@ int sd_session_get_seat(const char *session, char **seat);
 /* Determine the (PAM) service name this session was registered by. */
 int sd_session_get_service(const char *session, char **service);
 
+/* Determine the type of this session, i.e. one of "tty", "x11" or "unspecified". */
+int sd_session_get_type(const char *session, char **type);
+
+/* Determine the class of this session, i.e. one of "user", "greeter" or "lock-screen". */
+int sd_session_get_class(const char *session, char **class);
+
 /* Return active session and user of seat */
 int sd_seat_get_active(const char *seat, char **session, uid_t *uid);