mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04: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
|
|
@ -388,13 +388,14 @@ wl_proxy_marshal(struct wl_proxy *proxy, uint32_t opcode, ...)
|
|||
|
||||
static void
|
||||
display_handle_error(void *data,
|
||||
struct wl_display *display, struct wl_object *object,
|
||||
struct wl_display *display, void *object,
|
||||
uint32_t code, const char *message)
|
||||
{
|
||||
struct wl_proxy *proxy = object;
|
||||
int err;
|
||||
|
||||
wl_log("%s@%u: error %d: %s\n",
|
||||
object->interface->name, object->id, code, message);
|
||||
proxy->object.interface->name, proxy->object.id, code, message);
|
||||
|
||||
switch (code) {
|
||||
case WL_DISPLAY_ERROR_INVALID_OBJECT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue