XML C parser available under the MIT license. http://xmlsoft.org/

Dependents:   libiio

Committer:
pcercuei
Date:
Thu Aug 25 10:07:34 2016 +0000
Revision:
1:26f20484cbdc
Parent:
0:03b5121a232e
Add config.h and dummy.c containing empty functions

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pcercuei 0:03b5121a232e 1 /*
pcercuei 0:03b5121a232e 2 * Summary: Internal Interfaces for memory buffers in libxml2
pcercuei 0:03b5121a232e 3 * Description: this module describes most of the new xmlBuf buffer
pcercuei 0:03b5121a232e 4 * entry points, those are private routines, with a
pcercuei 0:03b5121a232e 5 * few exceptions exported in tree.h. This was added
pcercuei 0:03b5121a232e 6 * in 2.9.0.
pcercuei 0:03b5121a232e 7 *
pcercuei 0:03b5121a232e 8 * Copy: See Copyright for the status of this software.
pcercuei 0:03b5121a232e 9 *
pcercuei 0:03b5121a232e 10 * Author: Daniel Veillard
pcercuei 0:03b5121a232e 11 */
pcercuei 0:03b5121a232e 12
pcercuei 0:03b5121a232e 13 #ifndef __XML_BUF_H__
pcercuei 0:03b5121a232e 14 #define __XML_BUF_H__
pcercuei 0:03b5121a232e 15
pcercuei 0:03b5121a232e 16 #include <libxml/tree.h>
pcercuei 0:03b5121a232e 17
pcercuei 0:03b5121a232e 18 #ifdef __cplusplus
pcercuei 0:03b5121a232e 19 extern "C" {
pcercuei 0:03b5121a232e 20 #endif
pcercuei 0:03b5121a232e 21
pcercuei 0:03b5121a232e 22 xmlBufPtr xmlBufCreate(void);
pcercuei 0:03b5121a232e 23 xmlBufPtr xmlBufCreateSize(size_t size);
pcercuei 0:03b5121a232e 24 xmlBufPtr xmlBufCreateStatic(void *mem, size_t size);
pcercuei 0:03b5121a232e 25
pcercuei 0:03b5121a232e 26 int xmlBufSetAllocationScheme(xmlBufPtr buf,
pcercuei 0:03b5121a232e 27 xmlBufferAllocationScheme scheme);
pcercuei 0:03b5121a232e 28 int xmlBufGetAllocationScheme(xmlBufPtr buf);
pcercuei 0:03b5121a232e 29
pcercuei 0:03b5121a232e 30 void xmlBufFree(xmlBufPtr buf);
pcercuei 0:03b5121a232e 31 void xmlBufEmpty(xmlBufPtr buf);
pcercuei 0:03b5121a232e 32
pcercuei 0:03b5121a232e 33 /* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
pcercuei 0:03b5121a232e 34 int xmlBufGrow(xmlBufPtr buf, int len);
pcercuei 0:03b5121a232e 35 int xmlBufInflate(xmlBufPtr buf, size_t len);
pcercuei 0:03b5121a232e 36 int xmlBufResize(xmlBufPtr buf, size_t len);
pcercuei 0:03b5121a232e 37
pcercuei 0:03b5121a232e 38 int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
pcercuei 0:03b5121a232e 39 int xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len);
pcercuei 0:03b5121a232e 40 int xmlBufCat(xmlBufPtr buf, const xmlChar *str);
pcercuei 0:03b5121a232e 41 int xmlBufCCat(xmlBufPtr buf, const char *str);
pcercuei 0:03b5121a232e 42 int xmlBufWriteCHAR(xmlBufPtr buf, const xmlChar *string);
pcercuei 0:03b5121a232e 43 int xmlBufWriteChar(xmlBufPtr buf, const char *string);
pcercuei 0:03b5121a232e 44 int xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string);
pcercuei 0:03b5121a232e 45
pcercuei 0:03b5121a232e 46 size_t xmlBufAvail(const xmlBufPtr buf);
pcercuei 0:03b5121a232e 47 size_t xmlBufLength(const xmlBufPtr buf);
pcercuei 0:03b5121a232e 48 /* size_t xmlBufUse(const xmlBufPtr buf); */
pcercuei 0:03b5121a232e 49 int xmlBufIsEmpty(const xmlBufPtr buf);
pcercuei 0:03b5121a232e 50 int xmlBufAddLen(xmlBufPtr buf, size_t len);
pcercuei 0:03b5121a232e 51 int xmlBufErase(xmlBufPtr buf, size_t len);
pcercuei 0:03b5121a232e 52
pcercuei 0:03b5121a232e 53 /* const xmlChar * xmlBufContent(const xmlBuf *buf); */
pcercuei 0:03b5121a232e 54 /* const xmlChar * xmlBufEnd(xmlBufPtr buf); */
pcercuei 0:03b5121a232e 55
pcercuei 0:03b5121a232e 56 xmlChar * xmlBufDetach(xmlBufPtr buf);
pcercuei 0:03b5121a232e 57
pcercuei 0:03b5121a232e 58 size_t xmlBufDump(FILE *file, xmlBufPtr buf);
pcercuei 0:03b5121a232e 59
pcercuei 0:03b5121a232e 60 xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer);
pcercuei 0:03b5121a232e 61 xmlBufferPtr xmlBufBackToBuffer(xmlBufPtr buf);
pcercuei 0:03b5121a232e 62 int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer);
pcercuei 0:03b5121a232e 63
pcercuei 0:03b5121a232e 64 int xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input);
pcercuei 0:03b5121a232e 65 size_t xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input);
pcercuei 0:03b5121a232e 66 int xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input,
pcercuei 0:03b5121a232e 67 size_t base, size_t cur);
pcercuei 0:03b5121a232e 68 #ifdef __cplusplus
pcercuei 0:03b5121a232e 69 }
pcercuei 0:03b5121a232e 70 #endif
pcercuei 0:03b5121a232e 71 #endif /* __XML_BUF_H__ */
pcercuei 0:03b5121a232e 72
pcercuei 0:03b5121a232e 73