wayland/src
Sebastian Wick 9c4213ed3e server: add wl_client_get_user_data/wl_client_set_user_data
The only way to attach some data to a wl_client seems to be setting up a
destroy listener and use wl_container_of. Let's make it straight forward
to attach some data.

Having an explicit destroy callback for the user data makes managing the
user data lifetime much more convenient. All other callbacks, be they
wl_resource request listeners, destroy listeners or destructors, or
wl_client destroy listeners, can assume that the wl_client user data
still exists if it was set. Otherwise making that guarantee would be
complicated.

Co-authored-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net>
2024-02-15 10:53:21 +00:00
..
.gitignore ignore: Add *.dtd.embed 2016-03-10 22:24:20 -08:00
connection.c client: Allow setting names for queues 2024-01-22 12:34:14 +00:00
embed.py build: replace assembly embedding with Python script 2021-05-10 22:08:45 +00:00
event-loop.c event-loop: use wl_priv_signal for the destroy signal 2024-02-08 17:18:28 +00:00
meson.build Consider pkgconfig sysroot for pkgdatadir 2024-01-19 15:18:23 +00:00
scanner.c scanner: Fix undefined behavior around qsort 2023-01-03 11:05:35 +00:00
wayland-client-core.h client: Allow setting names for queues 2024-01-22 12:34:14 +00:00
wayland-client.c client: Allow setting names for queues 2024-01-22 12:34:14 +00:00
wayland-client.h doc: Formalize file comment in wayland-client.h, wayland-server.h 2016-05-11 11:03:27 -07:00
wayland-os.c tests: manually wrap libc functions 2023-06-27 13:31:50 +02:00
wayland-os.h shm: Add mmap+memmove fallback if mremap() does not exist 2021-09-10 11:35:54 +00:00
wayland-private.h client: Allow setting names for queues 2024-01-22 12:34:14 +00:00
wayland-server-core.h server: add wl_client_get_user_data/wl_client_set_user_data 2024-02-15 10:53:21 +00:00
wayland-server-private.h Move wl_priv_signal to wayland-server-private.h 2019-11-06 08:24:14 -06:00
wayland-server.c server: add wl_client_get_user_data/wl_client_set_user_data 2024-02-15 10:53:21 +00:00
wayland-server.h wayland-server: Finally remove deprecated struct wl_buffer definition 2018-07-25 12:08:16 -05:00
wayland-shm.c shm: implement version 2 2024-01-19 15:12:29 +00:00
wayland-util.c util: set errno when hitting WL_MAP_MAX_OBJECTS 2022-06-28 11:59:26 +02:00
wayland-util.h util: use C23 deprecated attribute 2024-01-19 14:21:59 +00:00
wayland-version.h.in src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-12 15:31:24 -07:00