# HG changeset patch # User diego # Date 1276854113 0 # Node ID aba3834b64119a9ff8a35191f1d52aa9db606bea # Parent 6e2c9a628fbaf891a677762e136bd9516daa1408 Move mp_msg-related extern variable declarations to mp_msg.h. diff -r 6e2c9a628fba -r aba3834b6411 cfg-common.h --- a/cfg-common.h Thu Jun 17 10:42:45 2010 +0000 +++ b/cfg-common.h Fri Jun 18 09:41:53 2010 +0000 @@ -23,16 +23,13 @@ #include "config.h" #include "m_config.h" #include "m_option.h" +#include "mp_msg.h" #include "libmpcodecs/ad.h" #include "libmpcodecs/vd.h" #include "libmpdemux/demux_ts.h" #include "osdep/priority.h" -extern char *mp_msg_charset; -extern int mp_msg_color; -extern int mp_msg_module; - /* defined in codec-cfg.c */ extern char * codecs_file; @@ -267,9 +264,6 @@ {NULL, NULL, 0, 0, 0, 0, NULL} }; -extern int mp_msg_levels[MSGT_MAX]; -extern int mp_msg_level_all; - const m_option_t msgl_config[]={ { "all", &mp_msg_level_all, CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL}, diff -r 6e2c9a628fba -r aba3834b6411 mp_msg.h --- a/mp_msg.h Thu Jun 17 10:42:45 2010 +0000 +++ b/mp_msg.h Fri Jun 18 09:41:53 2010 +0000 @@ -126,6 +126,15 @@ #define MSGT_MAX 64 + +extern char *mp_msg_charset; +extern int mp_msg_color; +extern int mp_msg_module; + +extern int mp_msg_levels[MSGT_MAX]; +extern int mp_msg_level_all; + + void mp_msg_init(void); int mp_msg_test(int mod, int lev);