X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-login.h;h=64b882724c00fe224deb877a20ff4a49e84a0f99;hb=0c124f8b2c93d2c7d6eefca3bdc59b28250fc077;hp=776733ad1ddd0358240e787c794309f22a8e4788;hpb=9541666b8d97f107335dd7e3cb93b4d2cfbf19c9;p=elogind.git diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index 776733ad1..64b882724 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -103,7 +103,10 @@ int sd_peer_get_machine_name(int fd, char **machine); int sd_peer_get_slice(int fd, char **slice); /* Get state from UID. Possible states: offline, lingering, online, active, closing */ -int sd_uid_get_state(uid_t uid, char**state); +int sd_uid_get_state(uid_t uid, char **state); + +/* Return primary session of user, if there is any */ +int sd_uid_get_display(uid_t uid, char **session); /* Return 1 if UID has session on seat. If require_active is true, this will * look for active sessions only. */ @@ -144,6 +147,9 @@ 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 **clazz); +/* Determine the desktop brand of this session, i.e. something like "GNOME", "KDE" or "systemd-console". */ +int sd_session_get_desktop(const char *session, char **desktop); + /* Determine the X11 display of this session. */ int sd_session_get_display(const char *session, char **display); @@ -178,6 +184,9 @@ int sd_seat_can_graphical(const char *seat); /* Return the class of machine */ int sd_machine_get_class(const char *machine, char **clazz); +/* Return the list if host-side network interface indices of a machine */ +int sd_machine_get_ifindices(const char *machine, int **ifindices); + /* Get all seats, store in *seats. Returns the number of seats. If * seats is NULL, this only returns the number of seats. */ int sd_get_seats(char ***seats);