server: Hand code all wl_display client stubs

This commit is contained in:
Kristian Høgsberg 2011-08-19 13:40:28 -04:00
parent 3ac8757ec3
commit a7c6824328
3 changed files with 44 additions and 16 deletions

View file

@ -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)
{