Add header for macosx_finder_args() instead of forward declaring it.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30717 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-02-23 07:54:10 +00:00
parent 9c0f9900ee
commit 5405958e34
3 changed files with 28 additions and 3 deletions

View File

@ -23,6 +23,7 @@
#include "m_option.h"
#include "m_config.h"
#include "playtree.h"
#include "macosx_finder_args.h"
static play_tree_t *files=NULL;

View File

@ -0,0 +1,26 @@
/*
* This file is part of MPlayer.
*
* MPlayer is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* MPlayer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPLAYER_MACOSX_FINDER_ARGS_H
#define MPLAYER_MACOSX_FINDER_ARGS_H
#include "playtree.h"
play_tree_t *macosx_finder_args(m_config_t *config, int argc, char **argv);
#endif /* MPLAYER_MACOSX_FINDER_ARGS_H */

View File

@ -36,6 +36,7 @@
#include "m_config.h"
#include "playtree.h"
#include "parser-mpcmd.h"
#include "osdep/macosx_finder_args.h"
static int recursion_depth = 0;
static int mode = 0;
@ -91,9 +92,6 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
int no_more_opts = 0;
int opt_exit = 0; // flag indicating whether mplayer should exit without playing anything
play_tree_t *last_parent, *last_entry = NULL, *root;
#ifdef CONFIG_MACOSX_FINDER
play_tree_t *macosx_finder_args(m_config_t *, int , char **);
#endif
#ifdef MP_DEBUG
assert(config != NULL);