summaryrefslogtreecommitdiffstats
path: root/src/scanner.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-06-28 22:01:58 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-06-28 22:01:58 -0400
commit9de9e39f87adfce1ea9755e394928756254c0ba2 (patch)
tree11dd0ac8e575e9042f439adcdeb42be256fc1325 /src/scanner.c
parentprotocol: Change wording of pointer.set_cursor() (diff)
downloadwayland-9de9e39f87adfce1ea9755e394928756254c0ba2.tar
wayland-9de9e39f87adfce1ea9755e394928756254c0ba2.tar.gz
wayland-9de9e39f87adfce1ea9755e394928756254c0ba2.tar.bz2
wayland-9de9e39f87adfce1ea9755e394928756254c0ba2.tar.lz
wayland-9de9e39f87adfce1ea9755e394928756254c0ba2.tar.xz
wayland-9de9e39f87adfce1ea9755e394928756254c0ba2.tar.zst
wayland-9de9e39f87adfce1ea9755e394928756254c0ba2.zip
Allocate client proxy automatically for new objects
When the server send a new object ID, the client used to have to allocate the proxy manually and without type-safety. We now allocate the proxy in a client-side post-processing step on the incoming closure.
Diffstat (limited to 'src/scanner.c')
-rw-r--r--src/scanner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scanner.c b/src/scanner.c
index e4797b0..83611ec 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -769,6 +769,8 @@ emit_structs(struct wl_list *message_list, struct interface *interface)
if (is_interface && a->type == OBJECT)
printf("struct wl_resource *");
+ else if (!is_interface && a->type == NEW_ID)
+ printf("struct %s *", a->interface_name);
else
emit_type(a);