aboutsummaryrefslogtreecommitdiffstats
path: root/cursor
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2017-10-12 13:39:17 +0100
committerDaniel Stone <daniels@collabora.com>2017-12-04 19:45:38 +0000
commit2f392daadbf27fbd91907e27c3333af41ca15765 (patch)
tree64c7604a60a3f5d66d33f27ac16afa7fbac33563 /cursor
parenttests: Mark tests used so they don’t get removed at link time (diff)
downloadwayland-2f392daadbf27fbd91907e27c3333af41ca15765.tar
wayland-2f392daadbf27fbd91907e27c3333af41ca15765.tar.gz
wayland-2f392daadbf27fbd91907e27c3333af41ca15765.tar.bz2
wayland-2f392daadbf27fbd91907e27c3333af41ca15765.tar.lz
wayland-2f392daadbf27fbd91907e27c3333af41ca15765.tar.xz
wayland-2f392daadbf27fbd91907e27c3333af41ca15765.tar.zst
wayland-2f392daadbf27fbd91907e27c3333af41ca15765.zip
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: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Diffstat (limited to 'cursor')
-rw-r--r--cursor/wayland-cursor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cursor/wayland-cursor.h b/cursor/wayland-cursor.h
index 09a13a7..40d3fc5 100644
--- a/cursor/wayland-cursor.h
+++ b/cursor/wayland-cursor.h
@@ -33,6 +33,8 @@ extern "C" {
#endif
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);