summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-28 23:48:10 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-28 23:48:10 +0200
commit92c27466284694c7072446b69d07dcc8c20f7eb7 (patch)
treeb9ca1143ffd80c4a4cf3fa59e983f70da37ed184
parent764b4df68a5fde0a6ac524684b23ccf6057d6596 (diff)
downloadlibass-92c27466284694c7072446b69d07dcc8c20f7eb7.tar.bz2
libass-92c27466284694c7072446b69d07dcc8c20f7eb7.tar.xz
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.
-rw-r--r--libass/ass_types.h6
1 files changed, 3 insertions, 3 deletions
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;