From: Grigori Goronzy Date: Tue, 28 Jul 2009 21:48:10 +0000 (+0200) Subject: Bring back names for public types X-Git-Tag: 0.9.7~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92c27466284694c7072446b69d07dcc8c20f7eb7;p=libass Bring back names for public types For the event/style/track types, bring back the struct name, but without the _s suffix. This is useful for forward declaration of these types. --- diff --git a/libass/ass_types.h b/libass/ass_types.h index ddd8841..aeb45e4 100644 --- a/libass/ass_types.h +++ b/libass/ass_types.h @@ -37,7 +37,7 @@ typedef struct parser_priv parser_priv_t; typedef struct ass_library ass_library_t; /* ASS Style: line */ -typedef struct { +typedef struct ass_style { char *Name; char *FontName; double FontSize; @@ -68,7 +68,7 @@ typedef struct { * ass_event_t corresponds to a single Dialogue line; * text is stored as-is, style overrides will be parsed later. */ -typedef struct { +typedef struct ass_event { long long Start; // ms long long Duration; // ms @@ -90,7 +90,7 @@ typedef struct { * (no real difference between them); it can be used in rendering after the * headers are parsed (i.e. events format line read). */ -typedef struct { +typedef struct ass_track { int n_styles; // amount used int max_styles; // amount allocated int n_events;