diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-08-27 12:05:09 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-08-27 12:06:11 -0400 |
commit | b15259bff48aa5a1f4f4c2a0675ce06e50a8c82f (patch) | |
tree | 0242c6a3531a5c0e01024998416e04231e75e5b0 /src/scanner.c | |
parent | 990809c0637a15edbdf75753afdea537e057fd34 (diff) |
server: Pass struct wl_resource for object references
Diffstat (limited to 'src/scanner.c')
-rw-r--r-- | src/scanner.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/scanner.c b/src/scanner.c index d6e8969..a2d3368 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -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); } |