# HG changeset patch # User ib # Date 1310047797 0 # Node ID e5959dcf8fe6b2c48e321f43620a7ffdc5b2ffb2 # Parent 23c804f4efbf979151ed9821f950c56838f64f1b Remove config related variables from interface.[ch]. Move them to cfg.[ch] instead. diff -r 23c804f4efbf -r e5959dcf8fe6 gui/cfg.c --- a/gui/cfg.c Thu Jul 07 13:46:59 2011 +0000 +++ b/gui/cfg.c Thu Jul 07 14:09:57 2011 +0000 @@ -80,6 +80,7 @@ #endif int gtkEnableAudioEqualizer; +float gtkEquChannels[6][10]; int gtkSubDumpMPSub; int gtkSubDumpSrt; @@ -98,6 +99,10 @@ int gui_sub_pos_x = -3; int gui_sub_pos_y = -3; +int guiWinID = -1; + +char *skinName; + static const m_option_t gui_opts[] = { { "cache", >kCacheOn, CONF_TYPE_FLAG, 0, 0, 1, NULL }, { "cache_size", >kCacheSize, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL }, diff -r 23c804f4efbf -r e5959dcf8fe6 gui/cfg.h --- a/gui/cfg.h Thu Jul 07 13:46:59 2011 +0000 +++ b/gui/cfg.h Thu Jul 07 14:09:57 2011 +0000 @@ -59,6 +59,7 @@ extern char *gtkEquChannel4; extern char *gtkEquChannel5; extern char *gtkEquChannel6; +extern float gtkEquChannels[6][10]; extern int gtkSubDumpMPSub; extern int gtkSubDumpSrt; @@ -82,6 +83,10 @@ extern int gui_sub_pos_x; extern int gui_sub_pos_y; +extern int guiWinID; + +extern char *skinName; + int cfg_gui_include(m_option_t *conf, const char *filename); int cfg_read(void); int cfg_write(void); diff -r 23c804f4efbf -r e5959dcf8fe6 gui/interface.c --- a/gui/interface.c Thu Jul 07 13:46:59 2011 +0000 +++ b/gui/interface.c Thu Jul 07 14:09:57 2011 +0000 @@ -60,16 +60,11 @@ .Balance = 50.0f }; -int guiWinID = -1; - -char *skinName; char *skinDirInHome; char *skinMPlayerDir; char *fsHistory[fsPersistant_MaxPos] = { NULL, NULL, NULL, NULL, NULL }; -float gtkEquChannels[6][10]; - static int initialized; /* MPlayer -> GUI */ diff -r 23c804f4efbf -r e5959dcf8fe6 gui/interface.h --- a/gui/interface.h Thu Jul 07 13:46:59 2011 +0000 +++ b/gui/interface.h Thu Jul 07 14:09:57 2011 +0000 @@ -176,16 +176,11 @@ extern guiInterface_t guiInfo; -extern int guiWinID; - -extern char *skinName; extern char *skinDirInHome; extern char *skinMPlayerDir; extern char *fsHistory[fsPersistant_MaxPos]; -extern float gtkEquChannels[6][10]; - /* MPlayer -> GUI */ void guiDone(void);