annotate gui/interface.h @ 27830:ff1876678ed6

synced with r27843
author ptt
date Thu, 30 Oct 2008 15:03:50 +0000
parents 14c5017f40d2
children 9e739bdb049c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26458
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
1 /*
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
2 * This file is part of MPlayer.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
3 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
5 * it under the terms of the GNU General Public License as published by
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
7 * (at your option) any later version.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
8 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
12 * GNU General Public License for more details.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
13 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
14 * You should have received a copy of the GNU General Public License along
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
17 */
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26382
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25607
diff changeset
19 #ifndef MPLAYER_GUI_INTERFACE_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25607
diff changeset
20 #define MPLAYER_GUI_INTERFACE_H
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21
26382
b2f4abcf20ed Make include paths consistent; do not use ../ in them.
diego
parents: 26029
diff changeset
22 #include "config.h"
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23 #include "mplayer/play.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24 #include "libvo/font_load.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25 #include "cfg.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26
27341
e7c989f7a7c9 Start unifying names of internal preprocessor directives.
diego
parents: 26458
diff changeset
27 #ifdef CONFIG_DVDREAD
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 #include "stream/stream.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 int x;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 int y;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 int width;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 int height;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 } guiResizeStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 int signal;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 char module[512];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 } guiUnknownErrorStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 int seek;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 int format;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 int width;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50 int height;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51 char codecdll[128];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52 } guiVideoStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53
27341
e7c989f7a7c9 Start unifying names of internal preprocessor directives.
diego
parents: 26458
diff changeset
54 #ifdef CONFIG_DVDREAD
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57 int titles;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 int chapters;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 int angles;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60 int current_chapter;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61 int current_title;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 int current_angle;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 int nr_of_audio_channels;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
64 stream_language_t audio_streams[32];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
65 int nr_of_subtitles;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
66 stream_language_t subtitles[32];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67 } guiDVDStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 int message;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73 guiResizeStruct resize;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 guiVideoStruct videodata;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 guiUnknownErrorStruct error;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 struct MPContext * mpcontext;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 void * sh_video;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 void * afilter;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 void * demuxer;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 void * event_struct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 int DiskChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 int NewPlay;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85
27341
e7c989f7a7c9 Start unifying names of internal preprocessor directives.
diego
parents: 26458
diff changeset
86 #ifdef CONFIG_DVDREAD
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87 guiDVDStruct DVD;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
88 int Title;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
89 int Angle;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
90 int Chapter;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
91 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92
27370
14c5017f40d2 Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents: 27341
diff changeset
93 #ifdef CONFIG_VCD
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 int VCDTracks;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
97 int Playing;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
98 float Position;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
99
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
100 int MovieWidth;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
101 int MovieHeight;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
102 int NoWindow;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
103
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
104 float Volume;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
105 float Balance;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
106
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
107 int Track;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
108 int AudioType;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
109 int StreamType;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
110 int AudioOnly;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
111 int TimeSec;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
112 int LengthInSec;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
113 int FrameDrop;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
114 int FileFormat;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115 float FPS;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
116
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
117 char * Filename;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
118 int FilenameChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
119
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
120 char * Subtitlename;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
121 int SubtitleChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
122
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
123 char * Othername;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
124 int OtherChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
125
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
126 char * AudioFile;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
127 int AudioFileChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
128
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
129 int SkinChange;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
130 } guiInterface_t;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
131
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
132 extern guiInterface_t guiIntfStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
133
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
134 #define guiXEvent 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
135 #define guiCEvent 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
136 #define guiIEvent 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
137 #define guiSetDVD 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
138 #define guiSetFileName 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
139 #define guiSetState 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
140 #define guiSetAudioOnly 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
141 #define guiReDrawSubWindow 7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
142 #define guiSetShVideo 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
143 #define guiSetStream 9
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
144 #define guiReDraw 10
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
145 #define guiSetVolume 11
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
146 #define guiSetDefaults 12
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
147 #define guiSetValues 13
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
148 #define guiSetFileFormat 14
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
149 #define guiSetDemuxer 15
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
150 #define guiSetParameters 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
151 #define guiSetAfilter 17
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
152 #define guiSetContext 18
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
153
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
154 #define guiSetStop 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
155 #define guiSetPlay 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
156 #define guiSetPause 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
157
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
158 #define guiDVD 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
159 #define guiVCD 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
160 #define guiFilenames 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
161 #define guiALL 0xffffffff
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
162
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
163 extern int use_gui;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
164
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
165 extern void guiInit( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
166 extern void guiDone( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
167 extern int guiGetEvent( int type,char * arg );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
168 extern void guiEventHandling( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
169 extern void guiLoadFont( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
170 extern void guiLoadSubtitle( char * name );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
171 extern void guiMessageBox(int level, char * str);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
172
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
173 typedef struct plItem
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
174 {
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
175 struct plItem * prev,* next;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
176 int played;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
177 char * path;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
178 char * name;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
179 } plItem;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
180
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
181 typedef struct urlItem
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
182 {
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
183 struct urlItem *next;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
184 char * url;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
185 } URLItem;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
186
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
187 extern plItem * plList;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
188 extern plItem * plCurrent;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
189 extern plItem * plLastPlayed;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
190
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
191 extern URLItem * URLList;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
192
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
193 #define fsPersistant_MaxPath 512
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
194 #define fsPersistant_MaxPos 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
195 extern char * fsHistory[fsPersistant_MaxPos];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
196
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
197 #define gtkSetContrast 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
198 #define gtkSetBrightness 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
199 #define gtkSetHue 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
200 #define gtkSetSaturation 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
201 #define gtkSetEqualizer 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
202 #define gtkAddPlItem 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
203 #define gtkGetNextPlItem 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
204 #define gtkGetPrevPlItem 7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
205 #define gtkGetCurrPlItem 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
206 #define gtkDelPl 9
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
207 #define gtkSetExtraStereo 10
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
208 #define gtkSetPanscan 11
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
209 #define gtkSetFontFactor 12
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
210 #define gtkSetAutoq 13
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
211 #define gtkClearStruct 14
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
212 #define gtkAddURLItem 15
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
213 #define gtkSetFontOutLine 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
214 #define gtkSetFontBlur 17
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
215 #define gtkSetFontTextScale 18
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
216 #define gtkSetFontOSDScale 19
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
217 #define gtkSetFontEncoding 20
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
218 #define gtkSetFontAutoScale 21
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
219 #define gtkSetSubEncoding 22
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
220 #define gtkDelCurrPlItem 23
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
221 #define gtkInsertPlItem 24
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
222 #define gtkSetCurrPlItem 25
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
223
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
224 extern float gtkEquChannels[6][10];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
225
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
226 extern void * gtkSet( int cmd,float param, void * vparam );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
227
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
228 extern char * gstrdup( const char * str );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
229 extern int gstrcmp( const char * a,const char * b );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
230 extern void gfree( void ** p );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
231 extern void gaddlist( char *** list,const char * entry );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
232 extern char * gstrchr( char * str,int c );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
233
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
234 #define guiSetFilename( s,n ) { gfree( (void **)&s ); s=gstrdup( n ); }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
235
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
236 #define guiSetDF( s,d,n ) \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
237 { \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
238 gfree( (void **)&s ); \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
239 s=malloc( strlen( d ) + strlen( n ) + 5 ); \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
240 sprintf( s,"%s/%s",d,n ); \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
241 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
242
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25607
diff changeset
243 #endif /* MPLAYER_GUI_INTERFACE_H */