mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
cursor: fix struct declaration style
Use tabs for indentation, don't use tabs to align field names. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
329be63d6b
commit
b0a4e63351
2 changed files with 32 additions and 32 deletions
|
|
@ -75,17 +75,17 @@
|
||||||
#define XCURSOR_FILE_TOC_LEN (3 * 4)
|
#define XCURSOR_FILE_TOC_LEN (3 * 4)
|
||||||
|
|
||||||
typedef struct _XcursorFileToc {
|
typedef struct _XcursorFileToc {
|
||||||
uint32_t type; /* chunk type */
|
uint32_t type; /* chunk type */
|
||||||
uint32_t subtype; /* subtype (size for images) */
|
uint32_t subtype; /* subtype (size for images) */
|
||||||
uint32_t position; /* absolute position in file */
|
uint32_t position; /* absolute position in file */
|
||||||
} XcursorFileToc;
|
} XcursorFileToc;
|
||||||
|
|
||||||
typedef struct _XcursorFileHeader {
|
typedef struct _XcursorFileHeader {
|
||||||
uint32_t magic; /* magic number */
|
uint32_t magic; /* magic number */
|
||||||
uint32_t header; /* byte length of header */
|
uint32_t header; /* byte length of header */
|
||||||
uint32_t version; /* file version number */
|
uint32_t version; /* file version number */
|
||||||
uint32_t ntoc; /* number of toc entries */
|
uint32_t ntoc; /* number of toc entries */
|
||||||
XcursorFileToc *tocs; /* table of contents */
|
XcursorFileToc *tocs; /* table of contents */
|
||||||
} XcursorFileHeader;
|
} XcursorFileHeader;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -107,10 +107,10 @@ typedef struct _XcursorFileHeader {
|
||||||
#define XCURSOR_CHUNK_HEADER_LEN (4 * 4)
|
#define XCURSOR_CHUNK_HEADER_LEN (4 * 4)
|
||||||
|
|
||||||
typedef struct _XcursorChunkHeader {
|
typedef struct _XcursorChunkHeader {
|
||||||
uint32_t header; /* bytes in chunk header */
|
uint32_t header; /* bytes in chunk header */
|
||||||
uint32_t type; /* chunk type */
|
uint32_t type; /* chunk type */
|
||||||
uint32_t subtype; /* chunk subtype (size for images) */
|
uint32_t subtype; /* chunk subtype (size for images) */
|
||||||
uint32_t version; /* version of this type */
|
uint32_t version; /* version of this type */
|
||||||
} XcursorChunkHeader;
|
} XcursorChunkHeader;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -136,9 +136,9 @@ typedef struct _XcursorChunkHeader {
|
||||||
#define XCURSOR_COMMENT_MAX_LEN 0x100000
|
#define XCURSOR_COMMENT_MAX_LEN 0x100000
|
||||||
|
|
||||||
typedef struct _XcursorComment {
|
typedef struct _XcursorComment {
|
||||||
uint32_t version;
|
uint32_t version;
|
||||||
uint32_t comment_type;
|
uint32_t comment_type;
|
||||||
char *comment;
|
char *comment;
|
||||||
} XcursorComment;
|
} XcursorComment;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -165,15 +165,15 @@ typedef struct _XcursorComment {
|
||||||
typedef struct _XcursorFile XcursorFile;
|
typedef struct _XcursorFile XcursorFile;
|
||||||
|
|
||||||
struct _XcursorFile {
|
struct _XcursorFile {
|
||||||
void *closure;
|
void *closure;
|
||||||
int (*read) (XcursorFile *file, unsigned char *buf, int len);
|
int (*read)(XcursorFile *file, unsigned char *buf, int len);
|
||||||
int (*write) (XcursorFile *file, unsigned char *buf, int len);
|
int (*write)(XcursorFile *file, unsigned char *buf, int len);
|
||||||
int (*seek) (XcursorFile *file, long offset, int whence);
|
int (*seek)(XcursorFile *file, long offset, int whence);
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _XcursorComments {
|
typedef struct _XcursorComments {
|
||||||
int ncomment; /* number of comments */
|
int ncomment; /* number of comments */
|
||||||
XcursorComment **comments; /* array of XcursorComment pointers */
|
XcursorComment **comments; /* array of XcursorComment pointers */
|
||||||
} XcursorComments;
|
} XcursorComments;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -29,23 +29,23 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef struct _XcursorImage {
|
typedef struct _XcursorImage {
|
||||||
uint32_t version; /* version of the image data */
|
uint32_t version; /* version of the image data */
|
||||||
uint32_t size; /* nominal size for matching */
|
uint32_t size; /* nominal size for matching */
|
||||||
uint32_t width; /* actual width */
|
uint32_t width; /* actual width */
|
||||||
uint32_t height; /* actual height */
|
uint32_t height; /* actual height */
|
||||||
uint32_t xhot; /* hot spot x (must be inside image) */
|
uint32_t xhot; /* hot spot x (must be inside image) */
|
||||||
uint32_t yhot; /* hot spot y (must be inside image) */
|
uint32_t yhot; /* hot spot y (must be inside image) */
|
||||||
uint32_t delay; /* animation delay to next frame (ms) */
|
uint32_t delay; /* animation delay to next frame (ms) */
|
||||||
uint32_t *pixels; /* pointer to pixels */
|
uint32_t *pixels; /* pointer to pixels */
|
||||||
} XcursorImage;
|
} XcursorImage;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Other data structures exposed by the library API
|
* Other data structures exposed by the library API
|
||||||
*/
|
*/
|
||||||
typedef struct _XcursorImages {
|
typedef struct _XcursorImages {
|
||||||
int nimage; /* number of images */
|
int nimage; /* number of images */
|
||||||
XcursorImage **images; /* array of XcursorImage pointers */
|
XcursorImage **images; /* array of XcursorImage pointers */
|
||||||
char *name; /* name used to load images */
|
char *name; /* name used to load images */
|
||||||
} XcursorImages;
|
} XcursorImages;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue