Mercurial > mplayer.hg
annotate gui/interface.h @ 33742:e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
Rename that part listSet() and remove now unused parameter fparam.
Remove needless casts in listSet() calls.
Remove needless explicit initialization of global list variables.
Additionally, remove disabled debug code list().
author | ib |
---|---|
date | Thu, 07 Jul 2011 11:50:32 +0000 |
parents | 962dc701989d |
children | 99562e7c8b27 |
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" |
23077 | 32 |
33021 | 33 extern int use_gui; // this is defined in mplayer.c |
34 // ------------------------------------------------------------ | |
35 | |
33466 | 36 #define GMPlayer "gmplayer" |
37 | |
33733 | 38 #define GUI_HANDLE_X_EVENT 0 |
33731
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
39 #define GUI_SET_STATE 1 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
40 #define GUI_RUN_COMMAND 2 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
41 #define GUI_SET_AUDIO 6 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
42 #define GUI_SETUP_VIDEO_WINDOW 8 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
43 #define GUI_SET_STREAM 9 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
44 #define GUI_REDRAW 10 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
45 #define GUI_SET_MIXER 11 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
46 #define GUI_SET_FILE 12 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
47 #define GUI_SET_VIDEO 13 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
48 #define GUI_PREPARE 16 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
49 #define GUI_SET_AFILTER 17 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
50 #define GUI_SET_CONTEXT 18 |
81f71d910333
Cosmetic: Change prefix for symbolic constants from GMP to GUI.
ib
parents:
33730
diff
changeset
|
51 #define GUI_END_FILE 19 |
33732 | 52 #define GUI_HANDLE_EVENTS 20 |
23077 | 53 |
33614 | 54 #define GUI_STOP 0 |
55 #define GUI_PLAY 1 | |
56 #define GUI_PAUSE 2 | |
23077 | 57 |
32984 | 58 #define guiDVD 1 |
59 #define guiVCD 2 | |
60 #define guiFilenames 4 | |
61 #define guiALL 0xffffffff | |
23077 | 62 |
32984 | 63 #define gtkSetContrast 0 |
64 #define gtkSetBrightness 1 | |
65 #define gtkSetHue 2 | |
66 #define gtkSetSaturation 3 | |
67 #define gtkSetEqualizer 4 | |
23077 | 68 #define gtkSetExtraStereo 10 |
69 #define gtkSetPanscan 11 | |
70 #define gtkSetFontFactor 12 | |
71 #define gtkSetAutoq 13 | |
72 #define gtkClearStruct 14 | |
73 #define gtkSetFontOutLine 16 | |
74 #define gtkSetFontBlur 17 | |
75 #define gtkSetFontTextScale 18 | |
76 #define gtkSetFontOSDScale 19 | |
77 #define gtkSetFontEncoding 20 | |
78 #define gtkSetFontAutoScale 21 | |
79 #define gtkSetSubEncoding 22 | |
80 | |
32984 | 81 #define fsPersistant_MaxPos 5 |
82 | |
83 typedef struct { | |
84 int x; | |
85 int y; | |
86 int width; | |
87 int height; | |
88 } guiResizeStruct; | |
89 | |
90 typedef struct { | |
91 int signal; | |
92 char module[512]; | |
93 } guiUnknownErrorStruct; | |
94 | |
95 typedef struct { | |
96 int seek; | |
97 int format; | |
98 int width; | |
99 int height; | |
100 char codecdll[128]; | |
101 } guiVideoStruct; | |
102 | |
103 #ifdef CONFIG_DVDREAD | |
104 typedef struct { | |
105 int titles; | |
106 int chapters; | |
107 int angles; | |
108 int current_chapter; | |
109 int current_title; | |
110 int current_angle; | |
111 int nr_of_audio_channels; | |
112 stream_language_t audio_streams[32]; | |
113 int nr_of_subtitles; | |
114 stream_language_t subtitles[32]; | |
115 } guiDVDStruct; | |
116 #endif | |
117 | |
118 typedef struct { | |
119 int message; | |
120 guiResizeStruct resize; | |
121 guiVideoStruct videodata; | |
122 guiUnknownErrorStruct error; | |
123 | |
124 struct MPContext *mpcontext; | |
125 void *sh_video; | |
126 void *afilter; | |
127 void *event_struct; | |
128 | |
129 int DiskChanged; | |
130 int NewPlay; | |
131 | |
132 #ifdef CONFIG_DVDREAD | |
133 guiDVDStruct DVD; | |
134 int Title; | |
135 int Angle; | |
136 int Chapter; | |
137 #endif | |
138 | |
139 #ifdef CONFIG_VCD | |
140 int VCDTracks; | |
141 #endif | |
142 | |
143 int Playing; | |
144 float Position; | |
145 | |
146 int MovieWidth; | |
147 int MovieHeight; | |
33655 | 148 int MovieWindow; |
32984 | 149 |
150 float Volume; | |
151 float Balance; | |
152 | |
153 int Track; | |
33646 | 154 int AudioChannels; |
32984 | 155 int StreamType; |
156 int TimeSec; | |
157 int LengthInSec; | |
158 int FrameDrop; | |
159 float FPS; | |
160 | |
161 char *Filename; | |
162 int FilenameChanged; | |
163 | |
164 char *Subtitlename; | |
165 int SubtitleChanged; | |
166 | |
167 char *Othername; | |
168 int OtherChanged; | |
169 | |
170 char *AudioFile; | |
171 int AudioFileChanged; | |
172 | |
173 int SkinChange; | |
174 } guiInterface_t; | |
175 | |
33555 | 176 extern guiInterface_t guiInfo; |
32984 | 177 |
178 extern int guiWinID; | |
179 | |
180 extern char *skinName; | |
181 extern char *skinDirInHome; | |
182 extern char *skinMPlayerDir; | |
183 | |
184 extern char *fsHistory[fsPersistant_MaxPos]; | |
185 | |
23077 | 186 extern float gtkEquChannels[6][10]; |
187 | |
33023 | 188 void gmp_msg(int mod, int lev, const char *format, ...); |
32984 | 189 void *gtkSet(int cmd, float fparam, void *vparam); |
190 void guiDone(void); | |
33309 | 191 void guiExit(enum exit_reason how); |
33726 | 192 int gui(int what, void *arg); |
32984 | 193 void guiInit(void); |
194 void guiLoadFont(void); | |
195 void guiLoadSubtitle(char *name); | |
33734 | 196 int guiInitializePlaylist(play_tree_t *my_playtree, m_config_t *config, int enqueue); |
197 int guiAddPlaylist(play_tree_t *my_playtree, m_config_t *config); | |
23077 | 198 |
26029 | 199 #endif /* MPLAYER_GUI_INTERFACE_H */ |