[PATCH wayland 0/5] add api to inspect the compositor state

Giulio Camuffo giuliocamuffo at gmail.com
Mon Mar 7 17:31:30 UTC 2016

This patches add several new functions to:
- get the list of current clients for a wl_display
- get notified of new clients
- get the list of resources for a wl_client
- get notified of new resources for a client
- get the interface of a resource

I'm working on a tool to inspect the internal state of a compositor, and this new
functions allow it to, once it has retrieved the wl_display, show all the protocol
objects that are active.
I would also like to add a wl_resource *wl_resource_get_parent() to get the
tree of resources but i'm not sure what the best way to achieve that would be,
so for now i believe these patches stand on their own and they can be pushed
once R-b-ed. 

Giulio Camuffo (4):
  Add API to retrieve the interface of a wl_resource
  Add API to get the list of connected clients
  Add a resource creation signal
  Add API to retrieve and iterate over the resources list of a client

Sungjae Park (1):
  server: add listener API for new clients

 src/wayland-server-core.h |  32 ++++++++++++
 src/wayland-server.c      | 129 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 161 insertions(+)


More information about the wayland-devel mailing list