Commit 2f392daa authored by Emil Velikov's avatar Emil Velikov Committed by Daniel Stone

cursor: add forward declaration for struct wl_buffer

This makes the header self-contained, since the struct is considered
opaque from waylad-cursor POV.

As we're here move the wl_shm fwd. declaration alongside the others.
Making it easier to read and track.
Signed-off-by: default avatarEmil Velikov <>
Reviewed-by: default avatarYong Bakos <>
parent 4c920f0f
......@@ -33,6 +33,8 @@ extern "C" {
struct wl_cursor_theme;
struct wl_buffer;
struct wl_shm;
struct wl_cursor_image {
uint32_t width; /* actual width */
......@@ -48,8 +50,6 @@ struct wl_cursor {
char *name;
struct wl_shm;
struct wl_cursor_theme *
wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment