annotate mp_msg.h @ 5036:021a0b7bd55f

JPEG_LIB moved to common libs, requires by mencoder too
author arpi
date Mon, 11 Mar 2002 00:13:26 +0000
parents 3473ca9ef158
children 870ba1ffdbf9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4044
diff changeset
1
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4044
diff changeset
2 #ifndef _MP_MSG_H
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4044
diff changeset
3 #define _MP_MSG_H
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
4
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
5 extern int verbose; // defined in mplayer.c
1562
2caba2f48026 new message printing system
arpi
parents:
diff changeset
6
2caba2f48026 new message printing system
arpi
parents:
diff changeset
7 // verbosity elevel:
2caba2f48026 new message printing system
arpi
parents:
diff changeset
8
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
9 // stuff from level MSGL_FATAL-MSGL_HINT should be translated.
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
10
1562
2caba2f48026 new message printing system
arpi
parents:
diff changeset
11 #define MSGL_FATAL 0 // will exit/abort
1563
0199567db534 constans shortend
arpi
parents: 1562
diff changeset
12 #define MSGL_ERR 1 // continues
1562
2caba2f48026 new message printing system
arpi
parents:
diff changeset
13 #define MSGL_WARN 2 // only warning
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
14 #define MSGL_HINT 3 // short help message
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
15 #define MSGL_INFO 4 // -quiet
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
16 #define MSGL_STATUS 5 // v=0
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
17 #define MSGL_V 6 // v=1
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
18 #define MSGL_DBG2 7 // v=2
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
19 #define MSGL_DBG3 8 // v=3
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
20 #define MSGL_DBG4 9 // v=4
1562
2caba2f48026 new message printing system
arpi
parents:
diff changeset
21
2caba2f48026 new message printing system
arpi
parents:
diff changeset
22 // code/module:
2caba2f48026 new message printing system
arpi
parents:
diff changeset
23
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
24 #define MSGT_GLOBAL 0 // common player stuff errors
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
25 #define MSGT_CPLAYER 1 // console player (mplayer.c)
1562
2caba2f48026 new message printing system
arpi
parents:
diff changeset
26 #define MSGT_GPLAYER 2 // gui player
2caba2f48026 new message printing system
arpi
parents:
diff changeset
27
2caba2f48026 new message printing system
arpi
parents:
diff changeset
28 #define MSGT_VO 3 // libvo
2caba2f48026 new message printing system
arpi
parents:
diff changeset
29 #define MSGT_AO 4 // libao
2caba2f48026 new message printing system
arpi
parents:
diff changeset
30
2caba2f48026 new message printing system
arpi
parents:
diff changeset
31 #define MSGT_DEMUXER 5 // demuxer.c (general stuff)
2caba2f48026 new message printing system
arpi
parents:
diff changeset
32 #define MSGT_DS 6 // demux stream (add/read packet etc)
2caba2f48026 new message printing system
arpi
parents:
diff changeset
33 #define MSGT_DEMUX 7 // fileformat-specific stuff (demux_*.c)
1563
0199567db534 constans shortend
arpi
parents: 1562
diff changeset
34 #define MSGT_HEADER 8 // fileformat-specific header (*header.c)
1562
2caba2f48026 new message printing system
arpi
parents:
diff changeset
35
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
36 #define MSGT_AVSYNC 9 // mplayer.c timer stuff
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
37 #define MSGT_AUTOQ 10 // mplayer.c auto-quality stuff
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
38
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
39 #define MSGT_CFGPARSER 11 // cfgparser.c
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
40
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
41 #define MSGT_DECAUDIO 12 // av decoder
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
42 #define MSGT_DECVIDEO 13
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
43
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
44 #define MSGT_SEEK 14 // seeking code
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
45 #define MSGT_WIN32 15 // win32 dll stuff
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
46 #define MSGT_OPEN 16 // open.c (stream opening)
1593
9d405908f878 DVD added
arpi
parents: 1568
diff changeset
47 #define MSGT_DVD 17 // open.c (DVD init/read/seek)
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
48
1973
5216f108cb4f all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents: 1593
diff changeset
49 #define MSGT_PARSEES 18 // parse_es.c (mpeg stream parser)
5216f108cb4f all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents: 1593
diff changeset
50 #define MSGT_LIRC 19 // lirc_mp.c
5216f108cb4f all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents: 1593
diff changeset
51
5216f108cb4f all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents: 1593
diff changeset
52 #define MSGT_STREAM 20 // stream.c
2787
8dfe10c9f15d fixes for vivo
alex
parents: 2620
diff changeset
53 #define MSGT_CACHE 21 // cache2.c
1973
5216f108cb4f all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents: 1593
diff changeset
54
2620
e2f600293621 MSGT_MENCODER added
arpi
parents: 2370
diff changeset
55 #define MSGT_MENCODER 22
e2f600293621 MSGT_MENCODER added
arpi
parents: 2370
diff changeset
56
2787
8dfe10c9f15d fixes for vivo
alex
parents: 2620
diff changeset
57 #define MSGT_XACODEC 23 // XAnim codecs
8dfe10c9f15d fixes for vivo
alex
parents: 2620
diff changeset
58
8dfe10c9f15d fixes for vivo
alex
parents: 2620
diff changeset
59 #define MSGT_TV 24 // TV input subsystem
8dfe10c9f15d fixes for vivo
alex
parents: 2620
diff changeset
60
3085
f6247be96224 added MSGT_OSDEP
alex
parents: 2787
diff changeset
61 #define MSGT_OSDEP 25 // OS Dependant parts (linux/ for now)
f6247be96224 added MSGT_OSDEP
alex
parents: 2787
diff changeset
62
3821
a75add28f16c spudec added
arpi
parents: 3085
diff changeset
63 #define MSGT_SPUDEC 26 // spudec.c
a75add28f16c spudec added
arpi
parents: 3085
diff changeset
64
4044
5db51705d5c7 MSGT_PLAYTREE added
arpi
parents: 3821
diff changeset
65 #define MSGT_PLAYTREE 27 // Playtree handeling (playtree.c, playtreeparser.c)
5db51705d5c7 MSGT_PLAYTREE added
arpi
parents: 3821
diff changeset
66
1562
2caba2f48026 new message printing system
arpi
parents:
diff changeset
67 #define MSGT_MAX 64
2caba2f48026 new message printing system
arpi
parents:
diff changeset
68
2caba2f48026 new message printing system
arpi
parents:
diff changeset
69 void mp_msg_init(int verbose);
2caba2f48026 new message printing system
arpi
parents:
diff changeset
70 void mp_msg_c( int x, const char *format, ... );
2caba2f48026 new message printing system
arpi
parents:
diff changeset
71
1568
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
72
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
73 #ifdef __GNUC__
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
74 #define mp_msg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args )
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
75
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
76 #ifdef MP_DEBUG
1568
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
77 #define mp_dbg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args )
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
78 #else
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
79 // these messages are only usefull for developers, disable them
1568
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
80 #define mp_dbg(mod,lev, args... )
1566
913c1ee56b4f updated
arpi
parents: 1563
diff changeset
81 #endif
1568
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
82 #else // not GNU C
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
83 #define mp_msg(mod,lev, ... ) mp_msg_c((mod<<8)|lev, __VA_ARGS__)
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
84
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
85 #ifdef MP_DEBUG
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
86 #define mp_dbg(mod,lev, ... ) mp_msg_c((mod<<8)|lev, __VA_ARGS__)
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
87 #else
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
88 // these messages are only usefull for developers, disable them
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
89 #define mp_dbg(mod,lev, ... )
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
90 #endif
2d4904c16667 modifications to use variable number of arguments in #define with GCC
atlka
parents: 1566
diff changeset
91 #endif
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4044
diff changeset
92
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4044
diff changeset
93 #endif