summaryrefslogtreecommitdiffstats
path: root/subreader.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-10-30 21:32:17 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:16:46 +0200
commit24dfc70a08a785cc0d5b9f58feea914a53d30ab7 (patch)
treefbcc688e3667eb015c6935078c891debc9d4cd71 /subreader.h
parent4093dd23af9a9c6aa41b8f0fd196c25a0cec353b (diff)
downloadmpv-24dfc70a08a785cc0d5b9f58feea914a53d30ab7.tar.bz2
mpv-24dfc70a08a785cc0d5b9f58feea914a53d30ab7.tar.xz
mpcommon.h: reduce header dependencies on other headers
Use "struct foo *ptr" without full definition of the struct, instead of using typedef names and including other headers for them.
Diffstat (limited to 'subreader.h')
-rw-r--r--subreader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/subreader.h b/subreader.h
index f1706dc120..b1aa07421b 100644
--- a/subreader.h
+++ b/subreader.h
@@ -60,7 +60,7 @@ extern int sub_format;
#define SUB_ALIGNMENT_TOPCENTER 8
#define SUB_ALIGNMENT_TOPRIGHT 9
-typedef struct {
+typedef struct subtitle {
int lines;
@@ -72,7 +72,7 @@ typedef struct {
unsigned char alignment;
} subtitle;
-typedef struct {
+typedef struct sub_data {
subtitle *subtitles;
char *filename;
int sub_uses_time;