X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemd%2Fsd-login.h;h=6bd1f2da4a77203f66f8cf8495dec9b4cdbfb161;hp=bddc74e729404fb9d5541e1a55b850561d77994c;hb=706911fba8d071449848f02516eef117277ff48b;hpb=0604381b9dbef4cc498b5a77311e1da99c1430b8 diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index bddc74e72..6bd1f2da4 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -44,6 +44,8 @@ extern "C" { * These functions access data in /proc, /sys/fs/cgroup and /run. All * of these are virtual file systems, hence the accesses are * relatively cheap. + * + * See sd-login(3) for more information. */ /* Get session from PID. Note that 'shared' processes of a user are @@ -117,6 +119,12 @@ int sd_seat_get_sessions(const char *seat, char ***sessions, uid_t **uid, unsign /* Return whether the seat is multi-session capable */ int sd_seat_can_multi_session(const char *seat); +/* Return whether the seat is TTY capable, i.e. suitable for showing console UIs */ +int sd_seat_can_tty(const char *seat); + +/* Return whether the seat is graphics capable, i.e. suitable for showing graphical UIs */ +int sd_seat_can_graphical(const char *seat); + /* Get all seats, store in *seats. Returns the number of seats. If * seats is NULL only returns number of seats. */ int sd_get_seats(char ***seats);