aboutsummaryrefslogtreecommitdiffstats
path: root/cursor/xcursor.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-04-21 11:29:08 +0200
committerSimon Ser <contact@emersion.fr>2022-05-23 08:59:05 +0000
commita46d8be4e1e8d3fc9920e280282b0e32054e6d02 (patch)
treeb145fee38ef5eb9b5d3b4891fe729df9baf2b490 /cursor/xcursor.h
parentcursor: fix spacing around conditions and loops (diff)
downloadwayland-a46d8be4e1e8d3fc9920e280282b0e32054e6d02.tar
wayland-a46d8be4e1e8d3fc9920e280282b0e32054e6d02.tar.gz
wayland-a46d8be4e1e8d3fc9920e280282b0e32054e6d02.tar.bz2
wayland-a46d8be4e1e8d3fc9920e280282b0e32054e6d02.tar.lz
wayland-a46d8be4e1e8d3fc9920e280282b0e32054e6d02.tar.xz
wayland-a46d8be4e1e8d3fc9920e280282b0e32054e6d02.tar.zst
wayland-a46d8be4e1e8d3fc9920e280282b0e32054e6d02.zip
cursor: remove struct typedefs, rename to snake case
Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'cursor/xcursor.h')
-rw-r--r--cursor/xcursor.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/cursor/xcursor.h b/cursor/xcursor.h
index e417904..528a169 100644
--- a/cursor/xcursor.h
+++ b/cursor/xcursor.h
@@ -28,7 +28,7 @@
#include <stdint.h>
-typedef struct _XcursorImage {
+struct xcursor_image {
uint32_t version; /* version of the image data */
uint32_t size; /* nominal size for matching */
uint32_t width; /* actual width */
@@ -37,22 +37,22 @@ typedef struct _XcursorImage {
uint32_t yhot; /* hot spot y (must be inside image) */
uint32_t delay; /* animation delay to next frame (ms) */
uint32_t *pixels; /* pointer to pixels */
-} XcursorImage;
+};
/*
* Other data structures exposed by the library API
*/
-typedef struct _XcursorImages {
+struct xcursor_images {
int nimage; /* number of images */
- XcursorImage **images; /* array of XcursorImage pointers */
+ struct xcursor_image **images; /* array of XcursorImage pointers */
char *name; /* name used to load images */
-} XcursorImages;
+};
void
-XcursorImagesDestroy(XcursorImages *images);
+XcursorImagesDestroy(struct xcursor_images *images);
void
xcursor_load_theme(const char *theme, int size,
- void (*load_callback)(XcursorImages *, void *),
+ void (*load_callback)(struct xcursor_images *, void *),
void *user_data);
#endif