annotate gui/mplayer/gmplayer.h @ 24992:5701e23ebcb4

Better handling of win32 GUI thread: 1. Use _beginthreadex to create the GUI thread to avoid possible memory leak when linked to MS CRT. 2. Terminate the GUI thread in an cleaner way using PostThreadMessage() rather than the unrecommended TerminateThread().
author zuxy
date Sun, 11 Nov 2007 08:14:57 +0000
parents 1cb14b091f46
children 3baf6a2283da
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
1
23689
3f0d00abc073 Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents: 23685
diff changeset
2 #ifndef GUI_GMPLAYER_H
3f0d00abc073 Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents: 23685
diff changeset
3 #define GUI_GMPLAYER_H
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
5 extern int mplSubRender;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
6 extern int mplMainRender;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
8 extern unsigned char * mplDrawBuffer;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
9 extern unsigned char * mplMenuDrawBuffer;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
10 extern int mainVisible;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
11
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
12 extern int mplMainAutoPlay;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
13 extern int mplMiddleMenu;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
14
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
15 extern void mplInit( void * disp );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
17 extern void mplMainDraw( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
18 extern void mplEventHandling( int msg,float param );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
19 extern void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
20 extern void mplMainKeyHandle( int KeyCode,int Type,int Key );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21 extern void mplDandDHandler(int num,char** files);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
22
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23 extern void mplSubDraw( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24 extern void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26 extern void mplMenuInit( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 extern void mplHideMenu( int mx,int my,int w );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 extern void mplShowMenu( int mx,int my );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 extern void mplMenuMouseHandle( int X,int Y,int RX,int RY );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 extern void mplPBInit( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 extern void mplPBShow( int x, int y );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 #endif