Mercurial > mplayer.hg
annotate gui/interface.h @ 33328:658f24bbf9b7
Remove unused variable.
author | reimar |
---|---|
date | Sat, 07 May 2011 20:00:38 +0000 |
parents | 733376438418 |
children | 45d8bfbd27bc |
rev | line source |
---|---|
26458 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
26029 | 19 #ifndef MPLAYER_GUI_INTERFACE_H |
20 #define MPLAYER_GUI_INTERFACE_H | |
23077 | 21 |
26382
b2f4abcf20ed
Make include paths consistent; do not use ../ in them.
diego
parents:
26029
diff
changeset
|
22 #include "config.h" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
23 #include "m_config.h" |
33309 | 24 #include "mp_core.h" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
25 #include "playtree.h" |
29149 | 26 #include "stream/stream.h" |
23077 | 27 |
33021 | 28 // These are in support of the non-GUI files that interact with |
29 // the GUI and that only need to include interface.h for this. | |
30 // ------------------------------------------------------------ | |
32984 | 31 #include "cfg.h" |
32 #include "mplayer/play.h" | |
23077 | 33 |
33021 | 34 extern int use_gui; // this is defined in mplayer.c |
35 // ------------------------------------------------------------ | |
36 | |
32984 | 37 #define guiXEvent 0 |
38 #define guiCEvent 1 | |
39 #define guiIEvent 2 | |
40 #define guiSetDVD 3 | |
41 #define guiSetFileName 4 | |
42 #define guiSetState 5 | |
43 #define guiSetAudioOnly 6 | |
44 #define guiReDrawSubWindow 7 | |
45 #define guiSetShVideo 8 | |
46 #define guiSetStream 9 | |
47 #define guiReDraw 10 | |
48 #define guiSetVolume 11 | |
49 #define guiSetDefaults 12 | |
50 #define guiSetValues 13 | |
51 #define guiSetFileFormat 14 | |
52 #define guiSetDemuxer 15 | |
53 #define guiSetParameters 16 | |
54 #define guiSetAfilter 17 | |
55 #define guiSetContext 18 | |
23077 | 56 |
57 #define guiSetStop 0 | |
58 #define guiSetPlay 1 | |
59 #define guiSetPause 2 | |
60 | |
32984 | 61 #define guiDVD 1 |
62 #define guiVCD 2 | |
63 #define guiFilenames 4 | |
64 #define guiALL 0xffffffff | |
23077 | 65 |
32984 | 66 #define gtkSetContrast 0 |
67 #define gtkSetBrightness 1 | |
68 #define gtkSetHue 2 | |
69 #define gtkSetSaturation 3 | |
70 #define gtkSetEqualizer 4 | |
71 #define gtkAddPlItem 5 | |
72 #define gtkGetNextPlItem 6 | |
73 #define gtkGetPrevPlItem 7 | |
74 #define gtkGetCurrPlItem 8 | |
75 #define gtkDelPl 9 | |
23077 | 76 #define gtkSetExtraStereo 10 |
77 #define gtkSetPanscan 11 | |
78 #define gtkSetFontFactor 12 | |
79 #define gtkSetAutoq 13 | |
80 #define gtkClearStruct 14 | |
81 #define gtkAddURLItem 15 | |
82 #define gtkSetFontOutLine 16 | |
83 #define gtkSetFontBlur 17 | |
84 #define gtkSetFontTextScale 18 | |
85 #define gtkSetFontOSDScale 19 | |
86 #define gtkSetFontEncoding 20 | |
87 #define gtkSetFontAutoScale 21 | |
88 #define gtkSetSubEncoding 22 | |
89 #define gtkDelCurrPlItem 23 | |
90 #define gtkInsertPlItem 24 | |
91 #define gtkSetCurrPlItem 25 | |
92 | |
32984 | 93 #define fsPersistant_MaxPos 5 |
94 | |
95 #define guiSetFilename(s, n) \ | |
96 { \ | |
33282
3ce656827dd7
Use free() instead of gfree() in guiSetFilename and guiSetDF macros.
ib
parents:
33263
diff
changeset
|
97 free(s); \ |
32984 | 98 s = gstrdup(n); \ |
99 } | |
100 | |
101 #define guiSetDF(s, d, n) \ | |
102 { \ | |
33282
3ce656827dd7
Use free() instead of gfree() in guiSetFilename and guiSetDF macros.
ib
parents:
33263
diff
changeset
|
103 free(s); \ |
32984 | 104 s = malloc(strlen(d) + strlen(n) + 5); \ |
105 sprintf(s, "%s/%s", d, n); \ | |
106 } | |
107 | |
108 typedef struct { | |
109 int x; | |
110 int y; | |
111 int width; | |
112 int height; | |
113 } guiResizeStruct; | |
114 | |
115 typedef struct { | |
116 int signal; | |
117 char module[512]; | |
118 } guiUnknownErrorStruct; | |
119 | |
120 typedef struct { | |
121 int seek; | |
122 int format; | |
123 int width; | |
124 int height; | |
125 char codecdll[128]; | |
126 } guiVideoStruct; | |
127 | |
128 #ifdef CONFIG_DVDREAD | |
129 typedef struct { | |
130 int titles; | |
131 int chapters; | |
132 int angles; | |
133 int current_chapter; | |
134 int current_title; | |
135 int current_angle; | |
136 int nr_of_audio_channels; | |
137 stream_language_t audio_streams[32]; | |
138 int nr_of_subtitles; | |
139 stream_language_t subtitles[32]; | |
140 } guiDVDStruct; | |
141 #endif | |
142 | |
143 typedef struct { | |
144 int message; | |
145 guiResizeStruct resize; | |
146 guiVideoStruct videodata; | |
147 guiUnknownErrorStruct error; | |
148 | |
149 struct MPContext *mpcontext; | |
150 void *sh_video; | |
151 void *afilter; | |
152 void *demuxer; | |
153 void *event_struct; | |
154 | |
155 int DiskChanged; | |
156 int NewPlay; | |
157 | |
158 #ifdef CONFIG_DVDREAD | |
159 guiDVDStruct DVD; | |
160 int Title; | |
161 int Angle; | |
162 int Chapter; | |
163 #endif | |
164 | |
165 #ifdef CONFIG_VCD | |
166 int VCDTracks; | |
167 #endif | |
168 | |
169 int Playing; | |
170 float Position; | |
171 | |
172 int MovieWidth; | |
173 int MovieHeight; | |
174 int NoWindow; | |
175 | |
176 float Volume; | |
177 float Balance; | |
178 | |
179 int Track; | |
180 int AudioType; | |
181 int StreamType; | |
182 int AudioOnly; | |
183 int TimeSec; | |
184 int LengthInSec; | |
185 int FrameDrop; | |
186 int FileFormat; | |
187 float FPS; | |
188 | |
189 char *Filename; | |
190 int FilenameChanged; | |
191 | |
192 char *Subtitlename; | |
193 int SubtitleChanged; | |
194 | |
195 char *Othername; | |
196 int OtherChanged; | |
197 | |
198 char *AudioFile; | |
199 int AudioFileChanged; | |
200 | |
201 int SkinChange; | |
202 } guiInterface_t; | |
203 | |
204 typedef struct plItem { | |
205 struct plItem *prev, *next; | |
206 int played; | |
207 char *path; | |
208 char *name; | |
209 } plItem; | |
210 | |
211 typedef struct urlItem { | |
212 struct urlItem *next; | |
213 char *url; | |
214 } URLItem; | |
215 | |
216 extern guiInterface_t guiIntfStruct; | |
217 | |
218 extern int guiWinID; | |
219 | |
220 extern char *skinName; | |
221 extern char *skinDirInHome; | |
222 extern char *skinMPlayerDir; | |
223 | |
224 extern plItem *plList; | |
225 extern plItem *plCurrent; | |
226 extern plItem *plLastPlayed; | |
227 | |
228 extern URLItem *URLList; | |
229 | |
230 extern char *fsHistory[fsPersistant_MaxPos]; | |
231 | |
23077 | 232 extern float gtkEquChannels[6][10]; |
233 | |
32984 | 234 void gaddlist(char ***list, const char *entry); |
235 void gfree(void **p); | |
33023 | 236 void gmp_msg(int mod, int lev, const char *format, ...); |
32984 | 237 char *gstrchr(char *str, int c); |
238 int gstrcmp(const char *a, const char *b); | |
239 char *gstrdup(const char *str); | |
240 void *gtkSet(int cmd, float fparam, void *vparam); | |
241 void guiDone(void); | |
242 void guiEventHandling(void); | |
33309 | 243 void guiExit(enum exit_reason how); |
32984 | 244 int guiGetEvent(int type, void *arg); |
245 void guiInit(void); | |
246 void guiLoadFont(void); | |
247 void guiLoadSubtitle(char *name); | |
248 int import_initial_playtree_into_gui(play_tree_t *my_playtree, m_config_t *config, int enqueue); | |
249 int import_playtree_playlist_into_gui(play_tree_t *my_playtree, m_config_t *config); | |
23077 | 250 |
26029 | 251 #endif /* MPLAYER_GUI_INTERFACE_H */ |