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.
This commit is contained in:
Kristian Høgsberg 2012-06-28 22:01:58 -04:00
parent c30ad0d9da
commit 9de9e39f87
4 changed files with 57 additions and 4 deletions

View file

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