diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-08 13:25:52 -0400 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-10 20:59:00 -0400 |
| commit | 8872956dfd43d36e4165d15cb50d8ef4f81fbe0d (patch) | |
| tree | 4e682120746b5fea5588cee49854d660f7defa03 /src/wayland-client.h | |
| parent | scanner: Send interface name and version for types new_id args (diff) | |
| download | wayland-8872956dfd43d36e4165d15cb50d8ef4f81fbe0d.tar wayland-8872956dfd43d36e4165d15cb50d8ef4f81fbe0d.tar.gz wayland-8872956dfd43d36e4165d15cb50d8ef4f81fbe0d.tar.bz2 wayland-8872956dfd43d36e4165d15cb50d8ef4f81fbe0d.tar.lz wayland-8872956dfd43d36e4165d15cb50d8ef4f81fbe0d.tar.xz wayland-8872956dfd43d36e4165d15cb50d8ef4f81fbe0d.tar.zst wayland-8872956dfd43d36e4165d15cb50d8ef4f81fbe0d.zip | |
scanner: Generate client stubs for wl_display requests
We used to special case this because of the untyped new-id argument in
the bind request. Now that the scanner can handle that, we can
remove the special case.
Switching to the generated stubs does bring an API change since we now
also take the interface version that the client expects as an argument.
Previously we would take this from the interface struct, but the
application may implement a lower version than what the interface struct
provides. To make sure we don't try to dispatch event the client
doesn't implement handlers for, we have to use a client supplied version
number.
Diffstat (limited to 'src/wayland-client.h')
| -rw-r--r-- | src/wayland-client.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/wayland-client.h b/src/wayland-client.h index fbbee09..aa92afb 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -51,23 +51,6 @@ void *wl_proxy_get_user_data(struct wl_proxy *proxy); uint32_t wl_proxy_get_id(struct wl_proxy *proxy); void wl_proxy_set_queue(struct wl_proxy *proxy, struct wl_event_queue *queue); -void *wl_display_bind(struct wl_display *display, - uint32_t name, const struct wl_interface *interface); - -static inline void -wl_display_set_user_data(struct wl_display *display, void *user_data) -{ - wl_proxy_set_user_data((struct wl_proxy *) display, user_data); -} - -static inline void * -wl_display_get_user_data(struct wl_display *display) -{ - return wl_proxy_get_user_data((struct wl_proxy *) display); -} - -struct wl_callback *wl_display_sync(struct wl_display *display); - #include "wayland-client-protocol.h" typedef int (*wl_display_update_func_t)(uint32_t mask, void *data); |
