mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-05 01:41:08 -05:00
server: Pass struct wl_resource for object references
This commit is contained in:
parent
990809c063
commit
b15259bff4
2 changed files with 7 additions and 2 deletions
|
|
@ -526,7 +526,11 @@ emit_structs(struct wl_list *message_list, struct interface *interface)
|
|||
wl_list_for_each(a, &m->arg_list, link) {
|
||||
printf(",\n%s", indent(n));
|
||||
|
||||
emit_type(a);
|
||||
if (is_interface && a->type == OBJECT)
|
||||
printf("struct wl_resource *");
|
||||
else
|
||||
emit_type(a);
|
||||
|
||||
printf("%s", a->name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue