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
;
23 asx_parser_free(ASX_Parser_t
* parser
);
26 * Return -1 on error, 0 when nothing is found, 1 on sucess
29 asx_get_element(ASX_Parser_t
* parser
,char** _buffer
,
30 char** _element
,char** _body
,char*** _attribs
);
33 asx_parse_attribs(ASX_Parser_t
* parser
,char* buffer
,char*** _attribs
);
38 asx_get_attrib(const char* attrib
,char** attribs
);
41 asx_attrib_to_enum(const char* val
,char** valid_vals
);
43 #define asx_free_attribs(a) asx_list_free(&a,free)
47 typedef void (*ASX_FreeFunc
)(void* arg
);
50 asx_list_free(void* list_ptr
,ASX_FreeFunc free_func
);
52 #endif /* MPLAYER_ASXPARSER_H */