From c4573f3289e429b939da0b5ac6d4a950ce72466a Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 16 Aug 2015 20:07:46 +0200 Subject: xml: change xml_parse_string to xml_parse_buf In the parser itself allow reading '\0' in the XML itself. Add a length parameter to specify the buffer size. --- xml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xml.h') diff --git a/xml.h b/xml.h index df63e23..aa9c59d 100644 --- a/xml.h +++ b/xml.h @@ -43,5 +43,5 @@ ssize_t xml_namedentitytostr(const char *, char *, size_t); ssize_t xml_numericetitytostr(const char *, char *, size_t); void xml_parse(XMLParser *); +void xml_parse_buf(XMLParser *, const char *, size_t); void xml_parse_fd(XMLParser *, int); -void xml_parse_string(XMLParser *, const char *); -- cgit v1.2.3