[Mesa-dev] [PATCH 7/9] wayland-drm: static inline wayland_drm_buffer_get
Daniel Stone
daniel at fooishbar.org
Tue Oct 24 10:37:56 UTC 2017
Hi Emil,
On 7 September 2017 at 19:05, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> diff --git a/src/egl/wayland/wayland-drm/wayland-drm.h b/src/egl/wayland/wayland-drm/wayland-drm.h
> index 77e8d273042..8dc7f6089ae 100644
> --- a/src/egl/wayland/wayland-drm/wayland-drm.h
> +++ b/src/egl/wayland/wayland-drm/wayland-drm.h
> @@ -4,9 +4,21 @@
> #include <wayland-server.h>
>
> struct wl_display;
> -struct wl_drm;
> struct wl_resource;
>
> +struct wl_drm {
> + struct wl_display *display;
> + struct wl_global *wl_drm_global;
> +
> + void *user_data;
> + char *device_name;
> + uint32_t flags;
> +
> + const struct wayland_drm_callbacks *callbacks;
You need a forward declaration of struct wayland_drm_callbacks before
this point.
Cheers,
Daniel
More information about the mesa-dev
mailing list