annotate gui/interface.h @ 30068:124057c64264

Add a (unfortunately rather long) explanation on how and when to use it to the file extension -> demuxer mapping list.
author reimar
date Fri, 25 Dec 2009 08:48:57 +0000
parents 0f1b5b68af32
children e3e329bc727a
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"
29149
8c3fbc5bf67d Remove pointless #ifdef around internal #include.
diego
parents: 28051
diff changeset
26 #include "stream/stream.h"
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 int x;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 int y;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 int width;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 int height;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 } guiResizeStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 int signal;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 char module[512];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 } guiUnknownErrorStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 int seek;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 int format;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 int width;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 int height;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 char codecdll[128];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 } guiVideoStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50
27341
e7c989f7a7c9 Start unifying names of internal preprocessor directives.
diego
parents: 26458
diff changeset
51 #ifdef CONFIG_DVDREAD
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 int titles;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 int chapters;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56 int angles;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57 int current_chapter;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 int current_title;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 int current_angle;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60 int nr_of_audio_channels;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61 stream_language_t audio_streams[32];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 int nr_of_subtitles;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 stream_language_t subtitles[32];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
64 } guiDVDStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
65 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
66
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 int message;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 guiResizeStruct resize;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 guiVideoStruct videodata;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 guiUnknownErrorStruct error;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29149
diff changeset
73
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 struct MPContext * mpcontext;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 void * sh_video;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76 void * afilter;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 void * demuxer;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 void * event_struct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 int DiskChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 int NewPlay;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82
27341
e7c989f7a7c9 Start unifying names of internal preprocessor directives.
diego
parents: 26458
diff changeset
83 #ifdef CONFIG_DVDREAD
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 guiDVDStruct DVD;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85 int Title;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 int Angle;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87 int Chapter;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
88 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
89
27370
14c5017f40d2 Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents: 27341
diff changeset
90 #ifdef CONFIG_VCD
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
91 int VCDTracks;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
93
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 int Playing;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95 float Position;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
97 int MovieWidth;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
98 int MovieHeight;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
99 int NoWindow;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
100
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
101 float Volume;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
102 float Balance;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
103
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
104 int Track;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
105 int AudioType;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
106 int StreamType;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
107 int AudioOnly;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
108 int TimeSec;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
109 int LengthInSec;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
110 int FrameDrop;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
111 int FileFormat;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
112 float FPS;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
113
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
114 char * Filename;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115 int FilenameChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
116
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
117 char * Subtitlename;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
118 int SubtitleChanged;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29149
diff changeset
119
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
120 char * Othername;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
121 int OtherChanged;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29149
diff changeset
122
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
123 char * AudioFile;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
124 int AudioFileChanged;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
125
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
126 int SkinChange;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
127 } guiInterface_t;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
128
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
129 extern guiInterface_t guiIntfStruct;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
130
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
131 #define guiXEvent 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
132 #define guiCEvent 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
133 #define guiIEvent 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
134 #define guiSetDVD 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
135 #define guiSetFileName 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
136 #define guiSetState 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
137 #define guiSetAudioOnly 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
138 #define guiReDrawSubWindow 7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
139 #define guiSetShVideo 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
140 #define guiSetStream 9
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
141 #define guiReDraw 10
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
142 #define guiSetVolume 11
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
143 #define guiSetDefaults 12
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
144 #define guiSetValues 13
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
145 #define guiSetFileFormat 14
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
146 #define guiSetDemuxer 15
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
147 #define guiSetParameters 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
148 #define guiSetAfilter 17
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
149 #define guiSetContext 18
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
150
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
151 #define guiSetStop 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
152 #define guiSetPlay 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
153 #define guiSetPause 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
154
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
155 #define guiDVD 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
156 #define guiVCD 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
157 #define guiFilenames 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
158 #define guiALL 0xffffffff
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
159
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
160 extern int use_gui;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
161
28051
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
162 void guiInit( void );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
163 void guiDone( void );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
164 int guiGetEvent( int type,char * arg );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
165 void guiEventHandling( void );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
166 void guiLoadFont( void );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
167 void guiLoadSubtitle( char * name );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
168 void guiMessageBox(int level, char * str);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
169
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
170 typedef struct plItem
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
171 {
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
172 struct plItem * prev,* next;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
173 int played;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
174 char * path;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
175 char * name;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
176 } plItem;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
177
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
178 typedef struct urlItem
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
179 {
25607
9d0b189ce1b2 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
diego
parents: 25535
diff changeset
180 struct urlItem *next;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
181 char * url;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
182 } URLItem;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
183
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
184 extern plItem * plList;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
185 extern plItem * plCurrent;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
186 extern plItem * plLastPlayed;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
187
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
188 extern URLItem * URLList;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
189
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
190 #define fsPersistant_MaxPath 512
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
191 #define fsPersistant_MaxPos 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
192 extern char * fsHistory[fsPersistant_MaxPos];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
193
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
194 #define gtkSetContrast 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
195 #define gtkSetBrightness 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
196 #define gtkSetHue 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
197 #define gtkSetSaturation 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
198 #define gtkSetEqualizer 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
199 #define gtkAddPlItem 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
200 #define gtkGetNextPlItem 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
201 #define gtkGetPrevPlItem 7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
202 #define gtkGetCurrPlItem 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
203 #define gtkDelPl 9
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
204 #define gtkSetExtraStereo 10
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
205 #define gtkSetPanscan 11
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
206 #define gtkSetFontFactor 12
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
207 #define gtkSetAutoq 13
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
208 #define gtkClearStruct 14
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
209 #define gtkAddURLItem 15
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
210 #define gtkSetFontOutLine 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
211 #define gtkSetFontBlur 17
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
212 #define gtkSetFontTextScale 18
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
213 #define gtkSetFontOSDScale 19
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
214 #define gtkSetFontEncoding 20
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
215 #define gtkSetFontAutoScale 21
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
216 #define gtkSetSubEncoding 22
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
217 #define gtkDelCurrPlItem 23
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
218 #define gtkInsertPlItem 24
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
219 #define gtkSetCurrPlItem 25
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
220
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
221 extern float gtkEquChannels[6][10];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
222
28051
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
223 void * gtkSet( int cmd, float param, void * vparam );
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
224
28051
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
225 char * gstrdup( const char * str );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
226 int gstrcmp( const char * a, const char * b );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
227 void gfree( void ** p );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
228 void gaddlist( char *** list, const char * entry );
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 27370
diff changeset
229 char * gstrchr( char * str, int c );
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
230
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
231 #define guiSetFilename( s,n ) { gfree( (void **)&s ); s=gstrdup( n ); }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
232
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
233 #define guiSetDF( s,d,n ) \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
234 { \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
235 gfree( (void **)&s ); \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
236 s=malloc( strlen( d ) + strlen( n ) + 5 ); \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
237 sprintf( s,"%s/%s",d,n ); \
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
238 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
239
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25607
diff changeset
240 #endif /* MPLAYER_GUI_INTERFACE_H */