diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2011-11-18 21:59:36 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-11-22 14:04:11 -0500 |
| commit | bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4 (patch) | |
| tree | 27de0aa7a408ab5130987b87922dd560de2ba562 /src/wayland-client.h | |
| parent | debug: Use unsigned for object IDs (diff) | |
| download | wayland-bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4.tar wayland-bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4.tar.gz wayland-bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4.tar.bz2 wayland-bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4.tar.lz wayland-bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4.tar.xz wayland-bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4.tar.zst wayland-bdbd6ef80b85f5d20608f702a6ffaa1f1f73e7a4.zip | |
Add support for server allocated object IDs
We set aside a range of the object ID space for use by the server. This
allows the server to bind an object to an ID for a client and pass that
object to the client. The client can use the object immediately and the
server can emit events to the object immdiately.
Diffstat (limited to 'src/wayland-client.h')
| -rw-r--r-- | src/wayland-client.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wayland-client.h b/src/wayland-client.h index 691912a..efeee4a 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -35,9 +35,10 @@ struct wl_display; void wl_proxy_marshal(struct wl_proxy *p, uint32_t opcode, ...); struct wl_proxy *wl_proxy_create(struct wl_proxy *factory, const struct wl_interface *interface); -struct wl_proxy *wl_proxy_create_for_id(struct wl_display *display, - const struct wl_interface *interface, - uint32_t id); +struct wl_proxy *wl_proxy_create_for_id(struct wl_proxy *factory, + uint32_t id, + const struct wl_interface *interface); + void wl_proxy_destroy(struct wl_proxy *proxy); int wl_proxy_add_listener(struct wl_proxy *proxy, void (**implementation)(void), void *data); |
