summaryrefslogtreecommitdiffstats
path: root/Gui/interface.h
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 15:12:55 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 15:12:55 +0000
commitc090d0da98cfc613b7b9b7227dd505735df224a6 (patch)
tree0e27f5b57f9efcde040f3b8381544468612f47d6 /Gui/interface.h
parent469f2d1b7e6c2251cbc9418b111f5bc700c7a262 (diff)
downloadmpv-c090d0da98cfc613b7b9b7227dd505735df224a6.tar.bz2
mpv-c090d0da98cfc613b7b9b7227dd505735df224a6.tar.xz
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4819 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.h')
-rw-r--r--Gui/interface.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/Gui/interface.h b/Gui/interface.h
index f3580a37e0..0125ad9e06 100644
--- a/Gui/interface.h
+++ b/Gui/interface.h
@@ -2,13 +2,112 @@
#ifndef _INTERFACE_H
#define _INTERFACE_H
+#include "../config.h"
#include "mplayer/play.h"
#include "../mplayer.h"
+#ifdef USE_DVDREAD
+ #include "../libmpdemux/stream.h"
+#endif
+
+
+typedef struct
+{
+ int x;
+ int y;
+ int width;
+ int height;
+} guiResizeStruct;
+
+typedef struct
+{
+ int signal;
+ char module[512];
+} guiUnknowErrorStruct;
+
+typedef struct
+{
+ int seek;
+ int format;
+ int width;
+ int height;
+ char codecdll[128];
+} guiVideoStruct;
+
+#ifdef USE_DVDREAD
+typedef struct
+{
+ int titles;
+ int chapters;
+ int angles;
+ int current_chapter;
+ int current_title;
+ int current_angle;
+ int nr_of_audio_channels;
+ stream_language_t audio_streams[32];
+ int nr_of_subtitles;
+ stream_language_t subtitles[32];
+} guiDVDStruct;
+#endif
+
+typedef struct
+{
+ int message;
+ guiResizeStruct resize;
+ guiVideoStruct videodata;
+ guiUnknowErrorStruct error;
+#ifdef USE_DVDREAD
+ guiDVDStruct DVD;
+ int DVDChanged;
+#endif
+
+ int Playing;
+ float Position;
+
+ int MovieWidth;
+ int MovieHeight;
+
+ float Volume;
+ int VolumeChanged;
+ float Balance;
+ int Mute;
+
+ int Track;
+ int AudioType;
+ int StreamType;
+ int TimeSec;
+ int LengthInSec;
+ int FrameDrop;
+
+ char * Filename;
+ int FilenameChanged;
+
+ char * Subtitlename;
+ int SubtitleChanged;
+
+ char * Othername;
+ int OtherChanged;
+
+ int SkinChange;
+} guiInterface_t;
+
+extern guiInterface_t guiIntfStruct;
+
#define guiXEvent 0
#define guiCEvent 1
+extern void guiInit( int argc,char* argv[], char *envp[] );
extern void guiGetEvent( int type,char * arg );
extern void guiEventHandling( void );
+#define guiSetFilename( s,n ) \
+ { if ( s ) free( s ); s=NULL; s=strdup( n ); }
+
+#define guiSetDF( s,d,n ) \
+ { \
+ if ( s ) free( s ); s=NULL; \
+ s=malloc( strlen( d ) + strlen( n ) + 5 ); \
+ sprintf( s,"%s/%s",d,n ); \
+ }
+
#endif \ No newline at end of file