changeset 30632:dad8e0eb182a

Add asx_parser_build_tree() to asxparser.h instead of forward declaring it.
author diego
date Sat, 20 Feb 2010 20:09:06 +0000
parents e9b902ad0ddb
children 32725ca88fed
files asxparser.h playtreeparser.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/asxparser.h	Sat Feb 20 20:01:56 2010 +0000
+++ b/asxparser.h	Sat Feb 20 20:09:06 2010 +0000
@@ -19,6 +19,8 @@
 #ifndef MPLAYER_ASXPARSER_H
 #define MPLAYER_ASXPARSER_H
 
+#include "playtree.h"
+
 typedef struct ASX_Parser_t ASX_Parser_t;
 
 typedef struct {
@@ -67,4 +69,7 @@
 void
 asx_list_free(void* list_ptr,ASX_FreeFunc free_func);
 
+play_tree_t*
+asx_parser_build_tree(char* buffer,int deep);
+
 #endif /* MPLAYER_ASXPARSER_H */
--- a/playtreeparser.c	Sat Feb 20 20:01:56 2010 +0000
+++ b/playtreeparser.c	Sat Feb 20 20:09:06 2010 +0000
@@ -30,6 +30,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <ctype.h>
+#include "asxparser.h"
 #include "m_config.h"
 #include "playtree.h"
 #include "playtreeparser.h"
@@ -38,9 +39,6 @@
 #include "mp_msg.h"
 
 
-extern play_tree_t*
-asx_parser_build_tree(char* buffer, int ref);
-
 #define BUF_STEP 1024
 
 #define WHITES " \n\r\t"