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