Mercurial > mplayer.hg
changeset 19808:5385740067a1
* remove extern definitions of functions in .c files
* create new .h files where necessary
todo:
* go trough other files than mplayer.c
* vf_menu_pause_update()
* mp_input_register_options()
* import_playtree_playlist_into_gui()
* import_initial_playtree_into_gui()
For more infos see http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2006-September/045683.html
( 20060902133225.2cc82aec.attila@kinali.ch on -dev-eng )
author | attila |
---|---|
date | Tue, 12 Sep 2006 16:24:23 +0000 |
parents | dce54e7ba7a5 |
children | 99d375aab4db |
files | mplayer.c osdep/getch2.h parser-cfg.h parser-mpcmd.h stream/cache2.h stream/stream.c |
diffstat | 6 files changed, 26 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Tue Sep 12 15:55:15 2006 +0000 +++ b/mplayer.c Tue Sep 12 16:24:23 2006 +0000 @@ -85,7 +85,6 @@ int slave_mode=0; int player_idle_mode=0; -extern int verbose; int quiet=0; #ifdef WIN32 @@ -116,7 +115,7 @@ #include "stream/dvbin.h" static int last_dvb_step = 1; static int dvbin_reopen = 0; -extern void cache_uninit(stream_t *s); +#include "stream/cache2.h" #endif //**************************************************************************// @@ -144,13 +143,11 @@ //**************************************************************************// // Config //**************************************************************************// +#include "parser-cfg.h" +#include "parser-mpcmd.h" + m_config_t* mconfig; -extern play_tree_t* -m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv); -extern int -m_config_parse_config_file(m_config_t* config, char *conffile); - //**************************************************************************// // Config file //**************************************************************************// @@ -194,8 +191,6 @@ #include "libmpcodecs/vf.h" #include "libmpcodecs/vd.h" -extern void vf_list_plugins(void); - //**************************************************************************// //**************************************************************************// @@ -805,8 +800,6 @@ exit_player(NULL); } -//extern void write_avi_header_1(FILE *f,int fcc,float fps,int width,int height); - extern void mp_input_register_options(m_config_t* cfg); #include "mixer.h"
--- a/osdep/getch2.h Tue Sep 12 15:55:15 2006 +0000 +++ b/osdep/getch2.h Tue Sep 12 16:24:23 2006 +0000 @@ -21,3 +21,6 @@ /* Read a character or a special key code (see keycodes.h) */ extern int getch2(int halfdelay_time); +#ifdef __MINGW32__ +extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size); +#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parser-cfg.h Tue Sep 12 16:24:23 2006 +0000 @@ -0,0 +1,6 @@ +#ifndef _parser_cfg_h +#define _parser_cfg_h + +extern int m_config_parse_config_file(m_config_t* config, char *conffile); + +#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parser-mpcmd.h Tue Sep 12 16:24:23 2006 +0000 @@ -0,0 +1,6 @@ +#ifndef _parser_mpcmd_h +#define _parser_mpcmd_h + +extern play_tree_t* m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv); + +#endif