client: Allow setting names for queues

Allow setting a name for an event queue. The queue is used only for
printing additional debug information.

Debug output can now show the name of the event queue an event is
dispatched from, or the event queue of a proxy when a request is made.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2023-11-10 14:21:48 -06:00 committed by Daniel Stone
parent 2f17d480e8
commit b42218f790
6 changed files with 218 additions and 16 deletions

View file

@ -213,7 +213,8 @@ wl_closure_queue(struct wl_closure *closure, struct wl_connection *connection);
void
wl_closure_print(struct wl_closure *closure,
struct wl_object *target, int send, int discarded,
uint32_t (*n_parse)(union wl_argument *arg));
uint32_t (*n_parse)(union wl_argument *arg),
const char *queue_name);
void
wl_closure_destroy(struct wl_closure *closure);