diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-07-16 07:47:28 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-07-16 07:47:28 +0000 |
commit | 72e5f67d47b025e7f528da9b4ccaa1a322e2be86 (patch) | |
tree | ebe1cc2fa48ceb8f589687ff1c3e3ef0c3baa075 /src/ne_xml.h | |
parent | e3b3fc72a2b3bd895ffc779005fe0a2304abc190 (diff) | |
download | neon-72e5f67d47b025e7f528da9b4ccaa1a322e2be86.tar.gz |
* src/ne_xml.h, src/ne_socket.h: Documentation updates.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1207 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_xml.h')
-rw-r--r-- | src/ne_xml.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/ne_xml.h b/src/ne_xml.h index 6ff5ca0..7fcd477 100644 --- a/src/ne_xml.h +++ b/src/ne_xml.h @@ -88,21 +88,19 @@ void ne_xml_push_handler(ne_xml_parser *p, /* ne_xml_failed returns non-zero if there was an error during * parsing, or zero if the parse completed successfully. The return - * value is equal to that of the last ne_xml_parse call for this - * parser. */ + * value is equal to that of the last ne_xml_parse() call for this + * parser object. */ int ne_xml_failed(ne_xml_parser *p); -/* Set error string for parser: the string may be truncated. */ +/* Set error string for parser. (The string may be truncated + * internally). */ void ne_xml_set_error(ne_xml_parser *p, const char *msg); -/* Return the error string (never NULL). After ne_xml_failed returns - * >0, this will describe the parse error. Otherwise it will be a - * default error string. */ +/* Return the error string (and never NULL). After ne_xml_failed + * returns >0, this will describe the parse error. Otherwise it will + * be a default error string. */ const char *ne_xml_get_error(ne_xml_parser *p); -/* Destroy the parser object. */ -void ne_xml_destroy(ne_xml_parser *p); - /* Parse the given block of input of length len. Parser must be * called with len=0 to signify the end of the document (for that * case, the block argument is ignored). Returns zero on success, or @@ -111,11 +109,12 @@ void ne_xml_destroy(ne_xml_parser *p); * callback's return value is returned. */ int ne_xml_parse(ne_xml_parser *p, const char *block, size_t len); -/* As above, casting (ne_xml_parser *)userdata internally. +/* As ne_xml_parse, casting (ne_xml_parser *)userdata internally. * (This function can be passed to ne_add_response_body_reader) */ int ne_xml_parse_v(void *userdata, const char *block, size_t len); -/* Return current parse line for errors */ +/* Return current line of document during parsing or after parsing is + * complete. */ int ne_xml_currentline(ne_xml_parser *p); /* From a start_element callback which was passed 'attrs' using given @@ -142,6 +141,9 @@ const char *ne_xml_resolve_nspace(ne_xml_parser *parser, * been parsed. */ const char *ne_xml_doc_encoding(const ne_xml_parser *p); +/* Destroy the parser object. */ +void ne_xml_destroy(ne_xml_parser *p); + /* A utility interface for mapping {nspace, name} onto an integer. */ struct ne_xml_idmap { const char *nspace, *name; |