diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-12-21 23:37:12 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-12-21 23:37:12 -0500 |
commit | ee02ca6fa489a99ddec5d1542d51cce9948d39a9 (patch) | |
tree | 079e7e4462fe5f365f5a6f3530b666a922ffcf12 /wayland.h | |
parent | 8049cbb88a4d2c93cdee9188eeb1d219aebcd343 (diff) | |
download | wayland-ee02ca6fa489a99ddec5d1542d51cce9948d39a9.tar.gz wayland-ee02ca6fa489a99ddec5d1542d51cce9948d39a9.tar.xz wayland-ee02ca6fa489a99ddec5d1542d51cce9948d39a9.zip |
Add hook to allow globals to send cold-plug events to new clients.
This lets us boot strap the client side state cache. This commit also adds the first user
of this feature, an output object that represents the current output. Very simple
at this point, but will grow to something more like RandR 1.2.
Diffstat (limited to 'wayland.h')
-rw-r--r-- | wayland.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -85,7 +85,10 @@ int wl_display_add_socket(struct wl_display *display, const char *name, size_t n void wl_display_run(struct wl_display *display); void wl_display_add_object(struct wl_display *display, struct wl_object *object); -int wl_display_add_global(struct wl_display *display, struct wl_object *object); + +typedef void (*wl_client_connect_func_t)(struct wl_client *client, struct wl_object *global); + +int wl_display_add_global(struct wl_display *display, struct wl_object *object, wl_client_connect_func_t func); struct wl_compositor { struct wl_object base; @@ -121,6 +124,11 @@ struct wl_surface_interface { }; void +wl_client_post_event(struct wl_client *client, + struct wl_object *sender, + uint32_t event, ...); + +void wl_surface_post_event(struct wl_surface *surface, struct wl_object *sender, uint32_t event, ...); |