diff options
Diffstat (limited to 'src/login/logind-seat.h')
-rw-r--r-- | src/login/logind-seat.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/login/logind-seat.h b/src/login/logind-seat.h index 6d4506257..0446384ce 100644 --- a/src/login/logind-seat.h +++ b/src/login/logind-seat.h @@ -27,8 +27,10 @@ struct Seat { LIST_FIELDS(Seat, gc_queue); }; -Seat *seat_new(Manager *m, const char *id); -void seat_free(Seat *s); +int seat_new(Seat **ret, Manager *m, const char *id); +Seat* seat_free(Seat *s); + +DEFINE_TRIVIAL_CLEANUP_FUNC(Seat *, seat_free); int seat_save(Seat *s); int seat_load(Seat *s); |