diff options
| author | Simon Ser <contact@emersion.fr> | 2022-04-21 11:29:08 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-05-23 08:59:05 +0000 |
| commit | a46d8be4e1e8d3fc9920e280282b0e32054e6d02 (patch) | |
| tree | b145fee38ef5eb9b5d3b4891fe729df9baf2b490 /cursor/xcursor.h | |
| parent | cursor: fix spacing around conditions and loops (diff) | |
| download | wayland-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.h | 14 |
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 |
