Make libseat_seat_listener const
libseat will never write to that struct. Let's allow callers to make it read-only.
This commit is contained in:
parent
309650aa4d
commit
166feaea33
6 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ static const struct named_backend impls[] = {
|
|||
#error At least one backend must be enabled
|
||||
#endif
|
||||
|
||||
struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void *data) {
|
||||
struct libseat *libseat_open_seat(const struct libseat_seat_listener *listener, void *data) {
|
||||
if (listener == NULL || listener->enable_seat == NULL || listener->disable_seat == NULL) {
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue