Lines Matching refs:seat
45 *seat = NULL, *session = NULL, in TEST() local
156 r = sd_session_get_seat(session, &seat); in TEST()
158 assert_se(seat); in TEST()
160 log_info("sd_session_get_seat(\"%s\") → \"%s\"", session, seat); in TEST()
164 r = sd_seat_can_multi_session(seat); in TEST()
167 log_info("sd_session_can_multi_seat(\"%s\") → %s", seat, yes_no(r)); in TEST()
169 r = sd_seat_can_tty(seat); in TEST()
171 log_info("sd_session_can_tty(\"%s\") → %s", seat, yes_no(r)); in TEST()
173 r = sd_seat_can_graphical(seat); in TEST()
175 log_info("sd_session_can_graphical(\"%s\") → %s", seat, yes_no(r)); in TEST()
186 if (seat) { in TEST()
191 assert_se(sd_uid_is_on_seat(u, 0, seat) > 0); in TEST()
193 r = sd_seat_get_active(seat, &session2, &u2); in TEST()
195 log_info("sd_seat_get_active(\"%s\", …) → \"%s\", "UID_FMT, seat, session2, u2); in TEST()
197 r = sd_uid_is_on_seat(u, 1, seat); in TEST()
201 r = sd_seat_get_sessions(seat, &sessions, &uids, &n); in TEST()
207 seat, e(r), t, n, format_uids(&buf, uids, n)); in TEST()
210 assert_se(sd_seat_get_sessions(seat, NULL, NULL, NULL) == r); in TEST()