changeset 31392:aba3834b6411

Move mp_msg-related extern variable declarations to mp_msg.h.
author diego
date Fri, 18 Jun 2010 09:41:53 +0000
parents 6e2c9a628fba
children 496c8a6d045b
files cfg-common.h mp_msg.h
diffstat 2 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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},
 
--- 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);