summaryrefslogtreecommitdiffstats
path: root/asxparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'asxparser.h')
-rw-r--r--asxparser.h56
1 files changed, 3 insertions, 53 deletions
diff --git a/asxparser.h b/asxparser.h
index 57577101fb..e49a2cedc0 100644
--- a/asxparser.h
+++ b/asxparser.h
@@ -19,59 +19,9 @@
#ifndef MPLAYER_ASXPARSER_H
#define MPLAYER_ASXPARSER_H
-#include "playtree.h"
+#include <stdbool.h>
-typedef struct ASX_Parser_t ASX_Parser_t;
-
-typedef struct {
- char* buffer;
- int line;
-} ASX_LineSave_t;
-
-struct ASX_Parser_t {
- int line; // Curent line
- ASX_LineSave_t *ret_stack;
- int ret_stack_size;
- char* last_body;
- int deep;
- struct m_config *mconfig;
-};
-
-struct m_config;
-ASX_Parser_t*
-asx_parser_new(struct m_config *mconfig);
-
-void
-asx_parser_free(ASX_Parser_t* parser);
-
-/*
- * Return -1 on error, 0 when nothing is found, 1 on sucess
- */
-int
-asx_get_element(ASX_Parser_t* parser,char** _buffer,
- char** _element,char** _body,char*** _attribs);
-
-int
-asx_parse_attribs(ASX_Parser_t* parser,char* buffer,char*** _attribs);
-
-/////// Attribs utils
-
-char*
-asx_get_attrib(const char* attrib,char** attribs);
-
-int
-asx_attrib_to_enum(const char* val,char** valid_vals);
-
-#define asx_free_attribs(a) asx_list_free(&a,free)
-
-////// List utils
-
-typedef void (*ASX_FreeFunc)(void* arg);
-
-void
-asx_list_free(void* list_ptr,ASX_FreeFunc free_func);
-
-play_tree_t*
-asx_parser_build_tree(struct m_config *mconfig, char* buffer, int ref);
+struct playlist;
+bool asx_parse(char* buffer, struct playlist *pl);
#endif /* MPLAYER_ASXPARSER_H */