mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
server: Hand code all wl_display client stubs
This commit is contained in:
parent
3ac8757ec3
commit
a7c6824328
3 changed files with 44 additions and 16 deletions
|
|
@ -524,6 +524,29 @@ wl_display_allocate_id(struct wl_display *display)
|
|||
return display->id++;
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_display_bind(struct wl_display *display,
|
||||
uint32_t id, const char *interface, uint32_t version)
|
||||
{
|
||||
wl_proxy_marshal(&display->proxy,
|
||||
WL_DISPLAY_BIND, id, interface, version);
|
||||
}
|
||||
|
||||
WL_EXPORT struct wl_callback *
|
||||
wl_display_sync(struct wl_display *display)
|
||||
{
|
||||
struct wl_proxy *proxy;
|
||||
|
||||
proxy = wl_proxy_create(&display->proxy, &wl_callback_interface);
|
||||
|
||||
if (!proxy)
|
||||
return NULL;
|
||||
|
||||
wl_proxy_marshal(&display->proxy, WL_DISPLAY_SYNC, proxy);
|
||||
|
||||
return (struct wl_callback *) proxy;
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_proxy_set_user_data(struct wl_proxy *proxy, void *user_data)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue