mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-11 05:34:41 -04:00
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.
This commit is contained in:
parent
190492b97c
commit
bdbd6ef80b
5 changed files with 108 additions and 30 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue