diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-28 01:42:03 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-28 01:42:03 +0200 |
commit | 1ca079bc46a3ddfb5e4d017473324bad67139a88 (patch) | |
tree | 65c664a65df9ae42b232f3b1871699c68aa4b386 /libass/ass_drawing.h | |
parent | f21c5b6b2788d1ba2073cb4066eedee0de1b249e (diff) | |
download | libass-1ca079bc46a3ddfb5e4d017473324bad67139a88.tar.bz2 libass-1ca079bc46a3ddfb5e4d017473324bad67139a88.tar.xz |
Clean up typedefs/structs
Remove useless _s suffix from struct names and remove struct name where
not needed (only the typedef'd struct is used). Clean up API headers.
Diffstat (limited to 'libass/ass_drawing.h')
-rw-r--r-- | libass/ass_drawing.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libass/ass_drawing.h b/libass/ass_drawing.h index 25cc4a7..54ef3d0 100644 --- a/libass/ass_drawing.h +++ b/libass/ass_drawing.h @@ -26,7 +26,7 @@ #define DRAWING_INITIAL_SIZE 256 -enum ass_token_type { +typedef enum { TOKEN_MOVE, TOKEN_MOVE_NC, TOKEN_LINE, @@ -35,16 +35,16 @@ enum ass_token_type { TOKEN_B_SPLINE, TOKEN_EXTEND_SPLINE, TOKEN_CLOSE -}; +} ass_token_type_t; -typedef struct ass_drawing_token_s { - enum ass_token_type type; +typedef struct ass_drawing_token { + ass_token_type_t type; FT_Vector point; - struct ass_drawing_token_s *next; - struct ass_drawing_token_s *prev; + struct ass_drawing_token *next; + struct ass_drawing_token *prev; } ass_drawing_token_t; -typedef struct ass_drawing_s { +typedef struct { char *text; // drawing string int i; // text index int scale; // scale (1-64) for subpixel accuracy |