wineoss: Use dedicated macros to call interface functions.
[wine.git] / libs / xml2 / buf.h
blobb7bcf61fe2e39264ddaebe813a81cd91d7de4040
1 /*
2 * Summary: Internal Interfaces for memory buffers in libxml2
3 * Description: this module describes most of the new xmlBuf buffer
4 * entry points, those are private routines, with a
5 * few exceptions exported in tree.h. This was added
6 * in 2.9.0.
8 * Copy: See Copyright for the status of this software.
10 * Author: Daniel Veillard
13 #ifndef __XML_BUF_H__
14 #define __XML_BUF_H__
16 #include <libxml/tree.h>
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 xmlBufPtr xmlBufCreate(void);
23 xmlBufPtr xmlBufCreateSize(size_t size);
24 xmlBufPtr xmlBufCreateStatic(void *mem, size_t size);
26 int xmlBufSetAllocationScheme(xmlBufPtr buf,
27 xmlBufferAllocationScheme scheme);
28 int xmlBufGetAllocationScheme(xmlBufPtr buf);
30 void xmlBufFree(xmlBufPtr buf);
31 void xmlBufEmpty(xmlBufPtr buf);
33 /* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
34 int xmlBufGrow(xmlBufPtr buf, int len);
35 int xmlBufResize(xmlBufPtr buf, size_t len);
37 int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
38 int xmlBufCat(xmlBufPtr buf, const xmlChar *str);
39 int xmlBufCCat(xmlBufPtr buf, const char *str);
40 int xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string);
42 size_t xmlBufAvail(const xmlBufPtr buf);
43 size_t xmlBufLength(const xmlBufPtr buf);
44 /* size_t xmlBufUse(const xmlBufPtr buf); */
45 int xmlBufIsEmpty(const xmlBufPtr buf);
46 int xmlBufAddLen(xmlBufPtr buf, size_t len);
48 /* const xmlChar * xmlBufContent(const xmlBuf *buf); */
49 /* const xmlChar * xmlBufEnd(xmlBufPtr buf); */
51 xmlChar * xmlBufDetach(xmlBufPtr buf);
53 size_t xmlBufDump(FILE *file, xmlBufPtr buf);
55 xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer);
56 xmlBufferPtr xmlBufBackToBuffer(xmlBufPtr buf);
57 int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer);
59 int xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input);
60 size_t xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input);
61 int xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input,
62 size_t base, size_t cur);
63 #ifdef __cplusplus
65 #endif
66 #endif /* __XML_BUF_H__ */