1693
|
1
|
|
2 #ifndef __GUI_SIGNAL
|
|
3 #define __GUI_SIGNAL
|
|
4
|
|
5 #include <stdlib.h>
|
|
6 #include <stdio.h>
|
|
7 #include <string.h>
|
|
8 #include <unistd.h>
|
|
9 #include <signal.h>
|
|
10
|
|
11 #define mplNoneEvent 0
|
|
12 #define mplResizeEvent 1
|
|
13 #define mplQuit 2
|
|
14 #define mplPauseEvent 3
|
|
15 #define mplEndOfFile 4
|
|
16 #define mplExposeEvent 5
|
|
17 #define mplSetVideoData 6
|
|
18 #define mplAudioError 7
|
|
19 #define mplUnknowError 8
|
|
20 #define mplSeekEvent 9
|
|
21 #define mplUnknowFileType 10
|
|
22 #define mplCodecConfNotFound 11
|
|
23 #define mplErrorDVDKeyProcess 12
|
|
24 #define mplErrorDVDAuth 13
|
|
25 #define mplErrorAVINI 14
|
|
26 #define mplAVIErrorMissingVideoStream 15
|
|
27 #define mplASFErrorMissingVideoStream 16
|
|
28 #define mplMPEGErrorSeqHeaderSearch 17
|
|
29 #define mplErrorShMemAlloc 18
|
|
30 #define mplMPEGErrorCannotReadSeqHeader 19
|
|
31 #define mplMPEGErrorBadSeqHeader 20
|
|
32 #define mplMPEGErrorCannotReadSeqHeaderExt 21
|
|
33 #define mplMPEGErrorBadSeqHeaderExt 22
|
|
34 #define mplCantFindCodecForVideoFormat 23
|
|
35 #define mplIncompatibleVideoOutDevice 24
|
|
36 #define mplCompileWithoutDSSupport 25
|
|
37 #define mplDSCodecNotFound 26
|
|
38 #define mplCantInitVideoDriver 27
|
|
39 #define mplIncAudioBufferDelay 28
|
|
40 #define mplDecAudioBufferDelay 29
|
|
41
|
2112
|
42 #ifndef SIGTYPE
|
|
43 #ifdef SIGUSR2
|
|
44 #define SIGTYPE SIGUSR2
|
|
45 #warning should we use SIGUSR1 or SIGUSR2 on linux, bsd, ... too?
|
|
46 #else
|
2089
|
47 #ifdef __bsdi__
|
|
48 #define _NSIG NSIG
|
|
49 #endif
|
1693
|
50 #define SIGTYPE _NSIG - 1
|
1850
|
51 #endif
|
2112
|
52 #endif
|
1693
|
53
|
|
54 extern int gtkIsOk;
|
|
55
|
|
56 extern pid_t mplMPlayerPID;
|
|
57 extern pid_t mplParentPID;
|
|
58
|
1741
|
59 extern pid_t gtkPID;
|
1693
|
60
|
|
61 extern void gtkSigHandler( int s );
|
|
62 extern void mplPlayerSigHandler( int s );
|
|
63 extern void mplMainSigHandler( int s );
|
|
64
|
|
65 extern void gtkSendMessage( int msg );
|
|
66
|
|
67 extern void mplErrorHandler( int critical,const char * format, ... );
|
|
68
|
1850
|
69 #endif
|