aboutsummaryrefslogtreecommitdiffstats
path: root/src/scanner.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-10-08 13:25:52 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-10-10 20:59:00 -0400
commit8872956dfd43d36e4165d15cb50d8ef4f81fbe0d (patch)
tree4e682120746b5fea5588cee49854d660f7defa03 /src/scanner.c
parentscanner: Send interface name and version for types new_id args (diff)
downloadwayland-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/scanner.c')
-rw-r--r--src/scanner.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 3f91916..d68c952 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -538,10 +538,6 @@ emit_stubs(struct wl_list *message_list, struct interface *interface)
struct arg *a, *ret;
int has_destructor, has_destroy;
- /* We provide a hand written functions for the display object */
- if (strcmp(interface->name, "wl_display") == 0)
- return;
-
printf("static inline void\n"
"%s_set_user_data(struct %s *%s, void *user_data)\n"
"{\n"