# HG changeset patch # User diego # Date 1276768004 0 # Node ID f2aebe1309b20a12d9a109d2eeb534ab4d22bcad # Parent ec5f9f87e77b019ad44e4ddebab45cd18ae11765 Declare stop_xscreensaver extern in x11_common.h instead of all over the code. diff -r ec5f9f87e77b -r f2aebe1309b2 cfg-mplayer.h --- a/cfg-mplayer.h Thu Jun 17 09:40:18 2010 +0000 +++ b/cfg-mplayer.h Thu Jun 17 09:46:44 2010 +0000 @@ -31,10 +31,9 @@ #include "libvo/geometry.h" #include "libvo/vo_fbdev.h" #include "libvo/vo_zr.h" +#include "libvo/x11_common.h" #include "mp_fifo.h" -extern int stop_xscreensaver; - extern char *unrar_executable; extern const m_option_t dxr2_opts[]; diff -r ec5f9f87e77b -r f2aebe1309b2 gui/cfg.c --- a/gui/cfg.c Thu Jun 17 09:40:18 2010 +0000 +++ b/gui/cfg.c Thu Jun 17 09:46:44 2010 +0000 @@ -31,6 +31,7 @@ #include "libmpcodecs/vd.h" #include "libvo/sub.h" #include "libvo/video_out.h" +#include "libvo/x11_common.h" #include "stream/stream.h" #include "libmpdemux/demuxer.h" #include "libass/ass_mp.h" @@ -99,7 +100,6 @@ #endif // --- -extern int stop_xscreensaver; extern int disable_gui_conf; int m_config_parse_config_file(m_config_t* config, char *conffile); diff -r ec5f9f87e77b -r f2aebe1309b2 gui/mplayer/gtk/opts.c --- a/gui/mplayer/gtk/opts.c Thu Jun 17 09:40:18 2010 +0000 +++ b/gui/mplayer/gtk/opts.c Thu Jun 17 09:46:44 2010 +0000 @@ -31,6 +31,7 @@ #include "libao2/audio_out.h" #include "libvo/sub.h" #include "libvo/video_out.h" +#include "libvo/x11_common.h" #include "stream/stream.h" #include "libmpdemux/demuxer.h" #include "libmpdemux/stheader.h" @@ -193,8 +194,6 @@ static void prEntry( GtkContainer * container,gpointer user_data ); #endif -extern int stop_xscreensaver; - void ShowPreferences( void ) { if ( Preferences ) gtkActive( Preferences ); diff -r ec5f9f87e77b -r f2aebe1309b2 libvo/x11_common.h --- a/libvo/x11_common.h Thu Jun 17 09:40:18 2010 +0000 +++ b/libvo/x11_common.h Thu Jun 17 09:46:44 2010 +0000 @@ -59,6 +59,8 @@ extern int vo_mouse_autohide; +extern int stop_xscreensaver; + int vo_init( void ); void vo_uninit( void ); void vo_hidecursor ( Display* , Window );