Mercurial > mplayer.hg
changeset 33747:e5959dcf8fe6
Remove config related variables from interface.[ch].
Move them to cfg.[ch] instead.
author | ib |
---|---|
date | Thu, 07 Jul 2011 14:09:57 +0000 |
parents | 23c804f4efbf |
children | 5860cfaff0a4 |
files | gui/cfg.c gui/cfg.h gui/interface.c gui/interface.h |
diffstat | 4 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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 },
--- 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);
--- 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 */
--- 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);