wayland/src
Lloyd Pique 50e6569699 client: Log unknown messages through the observer API
Client message observers 6/6

When the client code receives an event message for an unknown (or zombie)
object, the code was logging a message only to stderr, and only if debug_client
was set.

Introduce a helper function to create some temporary wl_closure and related
structures so that the unknown message can be sent out using the new client
observer API. This allows the client implementation to potentially log it
somewhere more useful than to just stderr, and it can register an observer at
any time too.

Note that the message that is logged is now structured slightly differently,
though it contains the same content.

Signed-off-by: Lloyd Pique <lpique@google.com>
2024-08-12 15:38:13 -07:00
..
.gitignore ignore: Add *.dtd.embed 2016-03-10 22:24:20 -08:00
connection.c connection: Simplify wl_closure_print 2024-08-12 14:45:55 -07:00
embed.py build: replace assembly embedding with Python script 2021-05-10 22:08:45 +00:00
event-loop.c src: Finish assert() clean-up 2024-08-09 20:38:52 +00:00
meson.build Consider pkgconfig sysroot for pkgdatadir 2024-01-19 15:18:23 +00:00
scanner.c scanner: fix validator for bitfields 2024-07-09 18:22:10 +02:00
wayland-client-core.h client: Log unknown messages through the observer API 2024-08-12 15:38:13 -07:00
wayland-client.c client: Log unknown messages through the observer API 2024-08-12 15:38:13 -07: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 build: fix build and provide compat for OpenBSD 2024-02-21 15:46:41 +00: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 connection: Simplify wl_closure_print 2024-08-12 14:45:55 -07:00
wayland-server-core.h server: Safe cast a "wl_object *" to "wl_resource *" 2024-08-12 15:37:57 -07: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: Safe cast a "wl_object *" to "wl_resource *" 2024-08-12 15:37:57 -07:00
wayland-server.h Put WL_DEPRECATED in front of the function declarations 2024-08-09 20:25:11 +00:00
wayland-shm.c src: Finish assert() clean-up 2024-08-09 20:38:52 +00:00
wayland-util.c util: convert macros to inline functions 2024-03-28 17:56:34 +01:00
wayland-util.h util: fix undefined behavior in wl_array_for_each 2024-03-24 20:00:01 -04:00
wayland-version.h.in src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-12 15:31:24 -07:00