aboutsummaryrefslogtreecommitdiffstats
path: root/src/scanner.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-06-27 20:09:18 -0500
committerKristian Høgsberg <krh@bitplanet.net>2013-07-02 15:52:47 -0400
commitd94a8722cb29d8b897672be66ff3c9ff79eab6fe (patch)
tree4314f9c98913c36a12525062680440a336a88092 /src/scanner.c
parentprotocol: add no_keymap format to keymap formats (diff)
downloadwayland-d94a8722cb29d8b897672be66ff3c9ff79eab6fe.tar
wayland-d94a8722cb29d8b897672be66ff3c9ff79eab6fe.tar.gz
wayland-d94a8722cb29d8b897672be66ff3c9ff79eab6fe.tar.bz2
wayland-d94a8722cb29d8b897672be66ff3c9ff79eab6fe.tar.lz
wayland-d94a8722cb29d8b897672be66ff3c9ff79eab6fe.tar.xz
wayland-d94a8722cb29d8b897672be66ff3c9ff79eab6fe.tar.zst
wayland-d94a8722cb29d8b897672be66ff3c9ff79eab6fe.zip
server: Make wl_object and wl_resource opaque structs
With the work to add wl_resource accessors and port weston to use them, we're ready to make wl_resource and wl_object opaque structs. We keep wl_buffer in the header for EGL stacks to use, but don't expose it by default. In time we'll remove it completely, but for now it provides a transition paths for code that still uses wl_buffer. Reviewed-by: Jason Ekstrand<jason@jlekstrand.net>
Diffstat (limited to 'src/scanner.c')
-rw-r--r--src/scanner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 9c14ad3..c63c908 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -829,7 +829,7 @@ emit_structs(struct wl_list *message_list, struct interface *interface)
else if (is_interface && a->type == NEW_ID && a->interface_name == NULL)
printf("const char *interface, uint32_t version, uint32_t ");
else if (!is_interface && a->type == OBJECT && a->interface_name == NULL)
- printf("struct wl_object *");
+ printf("void *");
else if (!is_interface && a->type == NEW_ID)
printf("struct %s *", a->interface_name);