X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Flogin%2Flogind-seat.h;fp=src%2Flogin%2Flogind-seat.h;h=d1a105adddd8ee12f3b205556896d333aea022df;hb=3b92c086a8d5338e2164ffa0ae48b3d03d10cfb5;hp=6236f1360bce0b77936785fa5d03c991f6a4cd84;hpb=469df514c7e10fbfdc3abb243e0458fd44084fc2;p=thirdparty%2Fsystemd.git diff --git a/src/login/logind-seat.h b/src/login/logind-seat.h index 6236f1360bc..d1a105adddd 100644 --- a/src/login/logind-seat.h +++ b/src/login/logind-seat.h @@ -77,3 +77,11 @@ int seat_send_signal(Seat *s, bool new_seat); int seat_send_changed(Seat *s, const char *properties, ...) _sentinel_; int bus_seat_method_terminate(sd_bus_message *message, void *userdata, sd_bus_error *error); + +static inline bool SEAT_IS_SELF(const char *name) { + return isempty(name) || streq(name, "self"); +} + +static inline bool SEAT_IS_AUTO(const char *name) { + return streq_ptr(name, "auto"); +}