3 typedef struct _ASX_Parser_t ASX_Parser_t
;
10 struct _ASX_Parser_t
{
11 int line
; // Curent line
12 ASX_LineSave_t
*ret_stack
;
22 asx_parser_free(ASX_Parser_t
* parser
);
25 * Return -1 on error, 0 when nothing is found, 1 on sucess
28 asx_get_element(ASX_Parser_t
* parser
,char** _buffer
,
29 char** _element
,char** _body
,char*** _attribs
);
32 asx_parse_attribs(ASX_Parser_t
* parser
,char* buffer
,char*** _attribs
);
37 asx_get_attrib(char* attrib
,char** attribs
);
40 asx_attrib_to_enum(char* val
,char** valid_vals
);
42 #define asx_free_attribs(a) asx_list_free((void***)&a,free)
46 typedef void (*ASX_FreeFunc
)(void* arg
);
49 asx_list_free(void* list_ptr
,ASX_FreeFunc free_func
);