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
|
@ -16,7 +16,7 @@ struct named_backend {
|
|||
};
|
||||
|
||||
struct seat_impl {
|
||||
struct libseat *(*open_seat)(struct libseat_seat_listener *listener, void *data);
|
||||
struct libseat *(*open_seat)(const struct libseat_seat_listener *listener, void *data);
|
||||
int (*disable_seat)(struct libseat *seat);
|
||||
int (*close_seat)(struct libseat *seat);
|
||||
const char *(*seat_name)(struct libseat *seat);
|
||||
|
|
|
@ -55,7 +55,7 @@ struct libseat_seat_listener {
|
|||
* Returns a pointer to an opaque libseat struct on success. Returns NULL and
|
||||
* sets errno on error.
|
||||
*/
|
||||
struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void *userdata);
|
||||
struct libseat *libseat_open_seat(const struct libseat_seat_listener *listener, void *userdata);
|
||||
|
||||
/*
|
||||
* Disables a seat, used in response to a disable_seat event. After disabling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue