aboutsummaryrefslogtreecommitdiff
path: root/include/libseat.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-14 09:03:23 +0000
committerKenny Levinsen <kl@kl.wtf>2021-08-15 13:33:30 +0200
commit166feaea3394e00af14418e074ae090e31922f33 (patch)
tree64a32fb03bd591d44e5d29816b451e72a6700a95 /include/libseat.h
parent309650aa4d4be1310b20e7293a3bc0c47aeecf0e (diff)
Make libseat_seat_listener const
libseat will never write to that struct. Let's allow callers to make it read-only.
Diffstat (limited to 'include/libseat.h')
-rw-r--r--include/libseat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libseat.h b/include/libseat.h
index 82098ea..2647fb9 100644
--- a/include/libseat.h
+++ b/include/libseat.h
@@ -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