Add header for macosx_finder_args() instead of forward declaring it.
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 23 Feb 2010 07:54:10 +0000 (07:54 +0000)
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 23 Feb 2010 07:54:10 +0000 (07:54 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@30717 b3059339-0415-0410-9bf9-f77b7e298cf2

osdep/macosx_finder_args.c
osdep/macosx_finder_args.h [new file with mode: 0644]
parser-mpcmd.c

index 81c1959..cbd88ad 100644 (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;
 
diff --git a/osdep/macosx_finder_args.h b/osdep/macosx_finder_args.h
new file mode 100644 (file)
index 0000000..fd04718
--- /dev/null
@@ -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 */
index b493ddf..b03bcfb 100644 (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);