5 // defined in mplayer.c and mencoder.c
10 /* Only messages level MSGL_FATAL-MSGL_STATUS should be translated,
11 * messages level MSGL_V and above should not be translated. */
13 #define MSGL_FATAL 0 // will exit/abort
14 #define MSGL_ERR 1 // continues
15 #define MSGL_WARN 2 // only warning
16 #define MSGL_HINT 3 // short help message
17 #define MSGL_INFO 4 // -quiet
18 #define MSGL_STATUS 5 // v=0
19 #define MSGL_V 6 // v=1
20 #define MSGL_DBG2 7 // v=2
21 #define MSGL_DBG3 8 // v=3
22 #define MSGL_DBG4 9 // v=4
23 #define MSGL_DBG5 10 // v=5
25 #define MSGL_FIXME 1 // for conversions from printf where the appropriate MSGL is not known; set equal to ERR for obtrusiveness
26 #define MSGT_FIXME 0 // for conversions from printf where the appropriate MSGT is not known; set equal to GLOBAL for obtrusiveness
30 #define MSGT_GLOBAL 0 // common player stuff errors
31 #define MSGT_CPLAYER 1 // console player (mplayer.c)
32 #define MSGT_GPLAYER 2 // gui player
34 #define MSGT_VO 3 // libvo
35 #define MSGT_AO 4 // libao
37 #define MSGT_DEMUXER 5 // demuxer.c (general stuff)
38 #define MSGT_DS 6 // demux stream (add/read packet etc)
39 #define MSGT_DEMUX 7 // fileformat-specific stuff (demux_*.c)
40 #define MSGT_HEADER 8 // fileformat-specific header (*header.c)
42 #define MSGT_AVSYNC 9 // mplayer.c timer stuff
43 #define MSGT_AUTOQ 10 // mplayer.c auto-quality stuff
45 #define MSGT_CFGPARSER 11 // cfgparser.c
47 #define MSGT_DECAUDIO 12 // av decoder
48 #define MSGT_DECVIDEO 13
50 #define MSGT_SEEK 14 // seeking code
51 #define MSGT_WIN32 15 // win32 dll stuff
52 #define MSGT_OPEN 16 // open.c (stream opening)
53 #define MSGT_DVD 17 // open.c (DVD init/read/seek)
55 #define MSGT_PARSEES 18 // parse_es.c (mpeg stream parser)
56 #define MSGT_LIRC 19 // lirc_mp.c and input lirc driver
58 #define MSGT_STREAM 20 // stream.c
59 #define MSGT_CACHE 21 // cache2.c
61 #define MSGT_MENCODER 22
63 #define MSGT_XACODEC 23 // XAnim codecs
65 #define MSGT_TV 24 // TV input subsystem
67 #define MSGT_OSDEP 25 // OS Dependant parts (linux/ for now)
69 #define MSGT_SPUDEC 26 // spudec.c
71 #define MSGT_PLAYTREE 27 // Playtree handeling (playtree.c, playtreeparser.c)
75 #define MSGT_VFILTER 29
79 #define MSGT_NETWORK 31
81 #define MSGT_CPUDETECT 32
83 #define MSGT_CODECCFG 33
87 #define MSGT_VOBSUB 35
88 #define MSGT_SUBREADER 36
90 #define MSGT_AFILTER 37 // Audio filter messages
92 #define MSGT_NETST 38 // Netstream
94 #define MSGT_MUXER 39 // muxer layer
96 #define MSGT_OSD_MENU 40
98 #define MSGT_IDENTIFY 41 // -identify output
102 void mp_msg_init(void);
103 int mp_msg_test(int mod
, int lev
);
108 // va_start/vsnprintf seems to be broken under OS2 :(
109 #define mp_msg(mod,lev, fmt, args... ) do{if((lev)<=mp_msg_levels[mod]) printf( fmt, ## args );}while(0)
110 #define mp_dbg(mod,lev, args... )
114 void mp_msg(int mod
, int lev
, const char *format
, ... ) __attribute__ ((format (printf
, 3, 4)));
116 # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args )
118 # define mp_dbg(mod,lev, args... ) /* only usefull for developers */
121 void mp_msg(int mod
, int lev
, const char *format
, ... );
123 # define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__)
125 # define mp_dbg(mod,lev, ... ) /* only usefull for developers */