1 #ifndef MPLAYER_ASXPARSER_H
2 #define MPLAYER_ASXPARSER_H
4 typedef struct ASX_Parser_t ASX_Parser_t
;
12 int line
; // Curent line
13 ASX_LineSave_t
*ret_stack
;
17 struct m_config
*mconfig
;
22 asx_parser_new(struct m_config
*mconfig
);
25 asx_parser_free(ASX_Parser_t
* parser
);
28 * Return -1 on error, 0 when nothing is found, 1 on sucess
31 asx_get_element(ASX_Parser_t
* parser
,char** _buffer
,
32 char** _element
,char** _body
,char*** _attribs
);
35 asx_parse_attribs(ASX_Parser_t
* parser
,char* buffer
,char*** _attribs
);
40 asx_get_attrib(const char* attrib
,char** attribs
);
43 asx_attrib_to_enum(const char* val
,char** valid_vals
);
45 #define asx_free_attribs(a) asx_list_free(&a,free)
49 typedef void (*ASX_FreeFunc
)(void* arg
);
52 asx_list_free(void* list_ptr
,ASX_FreeFunc free_func
);
54 #endif /* MPLAYER_ASXPARSER_H */