mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
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:
parent
c30ad0d9da
commit
9de9e39f87
4 changed files with 57 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue