annotate Gui/interface.h @ 7009:98bed9e12087

- add dxr3 gui support (dialogbox, etc.) - fix one small dvd playing bug ( dvd playing don't del the playlist) - add some ifdef() check
author pontscho
date Wed, 14 Aug 2002 23:02:45 +0000
parents 163f78ece9c2
children e37a67d5e117
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4798
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
1
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
2 #ifndef _INTERFACE_H
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
3 #define _INTERFACE_H
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
4
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
5 #include "../config.h"
4798
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
6 #include "mplayer/play.h"
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
7 #include "../mplayer.h"
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
8
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
9 #ifdef USE_DVDREAD
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
10 #include "../libmpdemux/stream.h"
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
11 #endif
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
12
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
13 typedef struct
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
14 {
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
15 int x;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
16 int y;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
17 int width;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
18 int height;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
19 } guiResizeStruct;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
20
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
21 typedef struct
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
22 {
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
23 int signal;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
24 char module[512];
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
25 } guiUnknowErrorStruct;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
26
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
27 typedef struct
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
28 {
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
29 int seek;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
30 int format;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
31 int width;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
32 int height;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
33 char codecdll[128];
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
34 } guiVideoStruct;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
35
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
36 #ifdef USE_DVDREAD
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
37 typedef struct
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
38 {
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
39 int titles;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
40 int chapters;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
41 int angles;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
42 int current_chapter;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
43 int current_title;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
44 int current_angle;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
45 int nr_of_audio_channels;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
46 stream_language_t audio_streams[32];
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
47 int nr_of_subtitles;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
48 stream_language_t subtitles[32];
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
49 } guiDVDStruct;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
50 #endif
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
51
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
52 typedef struct
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
53 {
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
54 int message;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
55 guiResizeStruct resize;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
56 guiVideoStruct videodata;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
57 guiUnknowErrorStruct error;
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
58
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
59 int DiskChanged;
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
60
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
61 #ifdef USE_DVDREAD
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
62 guiDVDStruct DVD;
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
63 #endif
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
64
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
65 #ifdef HAVE_VCD
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
66 int VCDTracks;
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
67 #endif
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
68
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
69 int Playing;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
70 float Position;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
71
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
72 int MovieWidth;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
73 int MovieHeight;
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
74 int NoWindow;
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
75
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
76 float Volume;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
77 float Balance;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
78
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
79 int Track;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
80 int AudioType;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
81 int StreamType;
5789
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
82 int AudioOnly;
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
83 int TimeSec;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
84 int LengthInSec;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
85 int FrameDrop;
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
86 int FileFormat;
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
87
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
88 char * Filename;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
89 int FilenameChanged;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
90
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
91 char * Subtitlename;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
92 int SubtitleChanged;
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
93
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
94 char * Fontname;
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
95
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
96 char * Othername;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
97 int OtherChanged;
6623
7bc4c6ba9485 add -audiofile support for gui
pontscho
parents: 6619
diff changeset
98
7bc4c6ba9485 add -audiofile support for gui
pontscho
parents: 6619
diff changeset
99 char * AudioFile;
7bc4c6ba9485 add -audiofile support for gui
pontscho
parents: 6619
diff changeset
100 int AudioFileChanged;
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
101
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
102 int SkinChange;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
103 } guiInterface_t;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
104
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
105 extern guiInterface_t guiIntfStruct;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
106
5789
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
107 #define guiXEvent 0
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
108 #define guiCEvent 1
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
109 #define guiIEvent 2
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
110 #define guiSetDVD 3
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
111 #define guiSetFileName 4
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
112 #define guiSetState 5
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
113 #define guiSetAudioOnly 6
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
114 #define guiReDrawSubWindow 7
0132c5747e8a fix audio only files play
pontscho
parents: 5665
diff changeset
115 #define guiSetShVideo 8
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
116 #define guiSetStream 9
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
117 #define guiReDraw 10
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
118 #define guiSetVolume 11
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
119 #define guiSetDefaults 12
6903
c2d4100c964e - fix mixer handling
pontscho
parents: 6794
diff changeset
120 #define guiSetValues 13
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
121 #define guiSetFileFormat 14
4798
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
122
4963
13262bd21965 small changes
pontscho
parents: 4852
diff changeset
123 #define guiSetStop 0
13262bd21965 small changes
pontscho
parents: 4852
diff changeset
124 #define guiSetPlay 1
13262bd21965 small changes
pontscho
parents: 4852
diff changeset
125 #define guiSetPause 2
13262bd21965 small changes
pontscho
parents: 4852
diff changeset
126
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
127 #define guiDVD 1
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
128 #define guiVCD 2
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
129 #define guiFilenames 4
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
130 #define guiALL 0xffffffff
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6218
diff changeset
131
4979
27980a844961 PlayToPause bug with mouse fixed
pontscho
parents: 4974
diff changeset
132 extern char *get_path(char *filename);
27980a844961 PlayToPause bug with mouse fixed
pontscho
parents: 4974
diff changeset
133
6218
8cfddba867b4 fix text render chrash ...
pontscho
parents: 5789
diff changeset
134 extern void guiInit( void );
4974
5da7b1522a9f small bug fixed and workarounds :(
pontscho
parents: 4963
diff changeset
135 extern void guiDone( void );
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
136 extern int guiGetEvent( int type,char * arg );
4798
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
137 extern void guiEventHandling( void );
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
138 extern void guiLoadFont( void );
4798
c39affa2b376 new interface ? :)
pontscho
parents:
diff changeset
139
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
140 typedef struct _plItem
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
141 {
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
142 struct _plItem * prev,* next;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
143 int played;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
144 char * path;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
145 char * name;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
146 } plItem;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
147
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
148 extern plItem * plList;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
149 extern plItem * plCurrent;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
150 extern plItem * plLastPlayed;
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
151
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
152 #define gtkSetContrast 0
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
153 #define gtkSetBrightness 1
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
154 #define gtkSetHue 2
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
155 #define gtkSetSaturation 3
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
156 #define gtkSetEqualizer 4
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
157 #define gtkAddPlItem 5
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
158 #define gtkGetNextPlItem 6
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
159 #define gtkGetPrevPlItem 7
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
160 #define gtkGetCurrPlItem 8
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
161 #define gtkDelPl 9
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
162 #define gtkSetExtraStereo 10
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
163 #define gtkSetAudioDelay 11
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
164 #define gtkSetPanscan 12
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
165 #define gtkSetSubDelay 13
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
166 #define gtkSetSubFPS 14
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
167 #define gtkSetSubPos 15
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
168 #define gtkSetSubAuto 16
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
169 #define gtkSetFontFactor 17
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
170 #define gtkSetAutoq 18
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
171 #define gtkClearStruct 19
6627
fd3ac41ee1a1 add equalizer support and fix some small bug...
pontscho
parents: 6623
diff changeset
172
fd3ac41ee1a1 add equalizer support and fix some small bug...
pontscho
parents: 6623
diff changeset
173 extern float gtkEquChannels[6][10];
fd3ac41ee1a1 add equalizer support and fix some small bug...
pontscho
parents: 6623
diff changeset
174
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6627
diff changeset
175 extern void * gtkSet( int cmd,float param, void * vparam );
6627
fd3ac41ee1a1 add equalizer support and fix some small bug...
pontscho
parents: 6623
diff changeset
176
6996
163f78ece9c2 add uri2filename converter
pontscho
parents: 6903
diff changeset
177 extern char * gconvert_uri_to_filename( char * str );
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
178 extern char * gstrdup( char * str );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
179 extern int gstrcmp( char * a,char * b );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
180 extern void gfree( void ** p );
4848
ad868aae2a5c fix playtree bug. but ... i dont' see this ... bazmeg
pontscho
parents: 4818
diff changeset
181
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
182 #define guiSetFilename( s,n ) { gfree( (void **)&s ); s=gstrdup( n ); }
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
183
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
184 #define guiSetDF( s,d,n ) \
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
185 { \
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
186 gfree( (void **)&s ); \
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
187 s=malloc( strlen( d ) + strlen( n ) + 5 ); \
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
188 sprintf( s,"%s/%s",d,n ); \
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
189 }
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
190
4848
ad868aae2a5c fix playtree bug. but ... i dont' see this ... bazmeg
pontscho
parents: 4818
diff changeset
191 #endif