Mercurial > mplayer.hg
comparison mp_msg.h @ 1562:2caba2f48026
new message printing system
author | arpi |
---|---|
date | Thu, 16 Aug 2001 22:13:20 +0000 |
parents | |
children | 0199567db534 |
comparison
equal
deleted
inserted
replaced
1561:e71337d1e58b | 1562:2caba2f48026 |
---|---|
1 | |
2 // verbosity elevel: | |
3 | |
4 #define MSGL_FATAL 0 // will exit/abort | |
5 #define MSGL_ERROR 1 // continues | |
6 #define MSGL_WARN 2 // only warning | |
7 #define MSGL_INFO 3 // -quiet | |
8 #define MSGL_STATUS 4 // v=0 | |
9 #define MSGL_VERBOSE 5// v=1 | |
10 #define MSGL_DEBUG2 6 // v=2 | |
11 #define MSGL_DEBUG3 7 // v=3 | |
12 #define MSGL_DEBUG4 8 // v=4 | |
13 | |
14 // code/module: | |
15 | |
16 #define MSGT_GLOBAL 0 // fatal errors | |
17 #define MSGT_CPLAYER 1 // console player | |
18 #define MSGT_GPLAYER 2 // gui player | |
19 | |
20 #define MSGT_VO 3 // libvo | |
21 #define MSGT_AO 4 // libao | |
22 | |
23 #define MSGT_DEMUXER 5 // demuxer.c (general stuff) | |
24 #define MSGT_DS 6 // demux stream (add/read packet etc) | |
25 #define MSGT_DEMUX 7 // fileformat-specific stuff (demux_*.c) | |
26 | |
27 #define MSGT_MAX 64 | |
28 | |
29 void mp_msg_init(int verbose); | |
30 void mp_msg_c( int x, const char *format, ... ); | |
31 | |
32 #define mp_msg(mod,lev,...) mp_msg_c((mod<<8)|lev,__VA_ARGS__) | |
33 #define mp_dbg(mod,lev,...) mp_msg_c((mod<<8)|lev,__VA_ARGS__) | |
34 |