Mercurial > mplayer.hg
annotate mp_msg.h @ 18175:01ca8a5fb8a6
minor fixes: get rid of pointless inline attributes and some additional checks
fo ppm reading
author | reimar |
---|---|
date | Fri, 21 Apr 2006 18:46:17 +0000 |
parents | 3b4e03cb518d |
children | 4231482179b6 |
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 | 4 |
14046
4802041ab8e3
Output more information about vids, aids, sids, alangs and slangs with -identify. Patch by kiriuja <mplayer-patches@en-directo.net>
mosu
parents:
13365
diff
changeset
|
5 // defined in mplayer.c and mencoder.c |
4802041ab8e3
Output more information about vids, aids, sids, alangs and slangs with -identify. Patch by kiriuja <mplayer-patches@en-directo.net>
mosu
parents:
13365
diff
changeset
|
6 extern int verbose; |
4802041ab8e3
Output more information about vids, aids, sids, alangs and slangs with -identify. Patch by kiriuja <mplayer-patches@en-directo.net>
mosu
parents:
13365
diff
changeset
|
7 extern int identify; |
1562 | 8 |
9 // verbosity elevel: | |
10 | |
17968 | 11 /* Only messages level MSGL_FATAL-MSGL_STATUS should be translated, |
12 * messages level MSGL_V and above should not be translated. */ | |
1566 | 13 |
1562 | 14 #define MSGL_FATAL 0 // will exit/abort |
1563 | 15 #define MSGL_ERR 1 // continues |
1562 | 16 #define MSGL_WARN 2 // only warning |
1566 | 17 #define MSGL_HINT 3 // short help message |
18 #define MSGL_INFO 4 // -quiet | |
19 #define MSGL_STATUS 5 // v=0 | |
20 #define MSGL_V 6 // v=1 | |
21 #define MSGL_DBG2 7 // v=2 | |
22 #define MSGL_DBG3 8 // v=3 | |
23 #define MSGL_DBG4 9 // v=4 | |
17930
81cbc8debd3c
Add DBG5 verbosity level to prepare for upcoming mp_msg_test changes.
diego
parents:
17566
diff
changeset
|
24 #define MSGL_DBG5 10 // v=5 |
1562 | 25 |
13122 | 26 #define MSGL_FIXME 1 // for conversions from printf where the appropriate MSGL is not known; set equal to ERR for obtrusiveness |
27 #define MSGT_FIXME 0 // for conversions from printf where the appropriate MSGT is not known; set equal to GLOBAL for obtrusiveness | |
28 | |
1562 | 29 // code/module: |
30 | |
1566 | 31 #define MSGT_GLOBAL 0 // common player stuff errors |
32 #define MSGT_CPLAYER 1 // console player (mplayer.c) | |
1562 | 33 #define MSGT_GPLAYER 2 // gui player |
34 | |
35 #define MSGT_VO 3 // libvo | |
36 #define MSGT_AO 4 // libao | |
37 | |
38 #define MSGT_DEMUXER 5 // demuxer.c (general stuff) | |
39 #define MSGT_DS 6 // demux stream (add/read packet etc) | |
40 #define MSGT_DEMUX 7 // fileformat-specific stuff (demux_*.c) | |
1563 | 41 #define MSGT_HEADER 8 // fileformat-specific header (*header.c) |
1562 | 42 |
1566 | 43 #define MSGT_AVSYNC 9 // mplayer.c timer stuff |
44 #define MSGT_AUTOQ 10 // mplayer.c auto-quality stuff | |
45 | |
46 #define MSGT_CFGPARSER 11 // cfgparser.c | |
47 | |
48 #define MSGT_DECAUDIO 12 // av decoder | |
49 #define MSGT_DECVIDEO 13 | |
50 | |
51 #define MSGT_SEEK 14 // seeking code | |
52 #define MSGT_WIN32 15 // win32 dll stuff | |
53 #define MSGT_OPEN 16 // open.c (stream opening) | |
1593 | 54 #define MSGT_DVD 17 // open.c (DVD init/read/seek) |
1566 | 55 |
1973
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
56 #define MSGT_PARSEES 18 // parse_es.c (mpeg stream parser) |
5198
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
57 #define MSGT_LIRC 19 // lirc_mp.c and input lirc driver |
1973
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
58 |
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
59 #define MSGT_STREAM 20 // stream.c |
2787 | 60 #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
|
61 |
2620 | 62 #define MSGT_MENCODER 22 |
63 | |
2787 | 64 #define MSGT_XACODEC 23 // XAnim codecs |
65 | |
66 #define MSGT_TV 24 // TV input subsystem | |
67 | |
3085 | 68 #define MSGT_OSDEP 25 // OS Dependant parts (linux/ for now) |
69 | |
3821 | 70 #define MSGT_SPUDEC 26 // spudec.c |
71 | |
4044 | 72 #define MSGT_PLAYTREE 27 // Playtree handeling (playtree.c, playtreeparser.c) |
73 | |
5198
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
74 #define MSGT_INPUT 28 |
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
75 |
5505 | 76 #define MSGT_VFILTER 29 |
77 | |
5638
86663f1b9b00
new osd code, use osd objs to follow changes and do minimal updates
arpi
parents:
5505
diff
changeset
|
78 #define MSGT_OSD 30 |
86663f1b9b00
new osd code, use osd objs to follow changes and do minimal updates
arpi
parents:
5505
diff
changeset
|
79 |
5915 | 80 #define MSGT_NETWORK 31 |
81 | |
5936 | 82 #define MSGT_CPUDETECT 32 |
83 | |
84 #define MSGT_CODECCFG 33 | |
85 | |
86 #define MSGT_SWS 34 | |
87 | |
6110 | 88 #define MSGT_VOBSUB 35 |
6296 | 89 #define MSGT_SUBREADER 36 |
6110 | 90 |
7568 | 91 #define MSGT_AFILTER 37 // Audio filter messages |
92 | |
9862 | 93 #define MSGT_NETST 38 // Netstream |
94 | |
11222 | 95 #define MSGT_MUXER 39 // muxer layer |
96 | |
17947 | 97 #define MSGT_OSD_MENU 40 |
98 | |
1562 | 99 #define MSGT_MAX 64 |
100 | |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
17106
diff
changeset
|
101 void mp_msg_init(void); |
7058
2e5c07262861
new v4l capture patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>:
arpi
parents:
6296
diff
changeset
|
102 int mp_msg_test(int mod, int lev); |
1562 | 103 |
5101 | 104 #include "config.h" |
105 | |
5287 | 106 #ifdef TARGET_OS2 |
107 // va_start/vsnprintf seems to be broken under OS2 :( | |
8957
36a5cdca733b
bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2)
mosu
parents:
7568
diff
changeset
|
108 #define mp_msg(mod,lev, fmt, args... ) do{if((lev)<=mp_msg_levels[mod]) printf( fmt, ## args );}while(0) |
5287 | 109 #define mp_dbg(mod,lev, args... ) |
110 #else | |
111 | |
1568
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
112 #ifdef __GNUC__ |
16618 | 113 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); |
16621 | 114 # ifdef MP_DEBUG |
115 # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args ) | |
116 # else | |
117 # define mp_dbg(mod,lev, args... ) /* only usefull for developers */ | |
118 # endif | |
16618 | 119 #else // not GNU C |
120 void mp_msg(int mod, int lev, const char *format, ... ); | |
16621 | 121 # ifdef MP_DEBUG |
122 # define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) | |
123 # else | |
124 # define mp_dbg(mod,lev, ... ) /* only usefull for developers */ | |
125 # endif | |
16618 | 126 #endif |
1566 | 127 |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
128 |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
129 #endif |
5287 | 130 #endif |