summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/psignal.h
blob: 66461ea71969097c76369e91951a3b816acdf21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

#ifndef __GUI_SIGNAL
#define __GUI_SIGNAL

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>

#define mplNoneEvent                             0
#define mplResizeEvent                           1
#define mplQuit                                  2
#define mplPauseEvent                            3
#define mplEndOfFile                             4
#define mplExposeEvent                           5
#define mplSetVideoData                          6
#define mplAudioError                            7
#define mplUnknowError                           8
#define mplSeekEvent                             9
#define mplUnknowFileType                        10
#define mplCodecConfNotFound                     11
#define mplErrorDVDKeyProcess                    12
#define mplErrorDVDAuth                          13
#define mplErrorAVINI                            14
#define mplAVIErrorMissingVideoStream            15
#define mplASFErrorMissingVideoStream            16
#define mplMPEGErrorSeqHeaderSearch              17
#define mplErrorShMemAlloc                       18
#define mplMPEGErrorCannotReadSeqHeader          19
#define mplMPEGErrorBadSeqHeader                 20
#define mplMPEGErrorCannotReadSeqHeaderExt       21
#define mplMPEGErrorBadSeqHeaderExt              22
#define mplCantFindCodecForVideoFormat           23
#define mplIncompatibleVideoOutDevice            24
#define mplCompileWithoutDSSupport               25
#define mplDSCodecNotFound                       26
#define mplCantInitVideoDriver                   27
#define mplIncAudioBufferDelay                   28
#define mplDecAudioBufferDelay                   29

#define SIGTYPE _NSIG - 1

extern int gtkIsOk;

extern pid_t mplMPlayerPID;
extern pid_t mplParentPID;

extern pid_t gtkChildPID;
extern pid_t gtkParentPID;

extern void gtkSigHandler( int s );
extern void mplPlayerSigHandler( int s );
extern void mplMainSigHandler( int s );

extern void mplSendMessage( int msg );
extern void gtkSendMessage( int msg );

extern void mplErrorHandler( int critical,const char * format, ... );

#endif