diff options
| author | Mike Hommey <glandium@debian.org> | 2005-09-05 17:10:35 +0000 |
|---|---|---|
| committer | Mike Hommey <glandium@debian.org> | 2005-09-05 17:10:35 +0000 |
| commit | a464d9993e2acd5b8e1089b218ba74c6fcf215c5 (patch) | |
| tree | 72fe00eb59147367a1d660b90d08172357e0dffc /include/libxml/tree.h | |
| parent | 112cb5bb5475afec1c1cbf1d6728ce4880d0fee8 (diff) | |
| download | libxml2-upstream/2.6.21.tar.gz | |
Load /usr/tmp/tmp.CMoFff/libxml2-2.6.21 intoupstream/2.6.21
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'include/libxml/tree.h')
| -rw-r--r-- | include/libxml/tree.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/include/libxml/tree.h b/include/libxml/tree.h index d995e5c..bd62d0a 100644 --- a/include/libxml/tree.h +++ b/include/libxml/tree.h @@ -55,6 +55,33 @@ typedef xmlEntity *xmlEntityPtr; #define BASE_BUFFER_SIZE 4096 /** + * xmlBufferAllocationScheme: + * + * A buffer allocation scheme can be defined to either match exactly the + * need or double it's allocated size each time it is found too small. + */ + +typedef enum { + XML_BUFFER_ALLOC_DOUBLEIT, + XML_BUFFER_ALLOC_EXACT, + XML_BUFFER_ALLOC_IMMUTABLE +} xmlBufferAllocationScheme; + +/** + * xmlBuffer: + * + * A buffer structure. + */ +typedef struct _xmlBuffer xmlBuffer; +typedef xmlBuffer *xmlBufferPtr; +struct _xmlBuffer { + xmlChar *content; /* The buffer content UTF8 */ + unsigned int use; /* The buffer size used */ + unsigned int size; /* The buffer size */ + xmlBufferAllocationScheme alloc; /* The realloc method */ +}; + +/** * XML_XML_NAMESPACE: * * This is the namespace for the special xml: prefix predefined in the @@ -402,33 +429,6 @@ struct _xmlRef { }; /** - * xmlBufferAllocationScheme: - * - * A buffer allocation scheme can be defined to either match exactly the - * need or double it's allocated size each time it is found too small. - */ - -typedef enum { - XML_BUFFER_ALLOC_DOUBLEIT, - XML_BUFFER_ALLOC_EXACT, - XML_BUFFER_ALLOC_IMMUTABLE -} xmlBufferAllocationScheme; - -/** - * xmlBuffer: - * - * A buffer structure. - */ -typedef struct _xmlBuffer xmlBuffer; -typedef xmlBuffer *xmlBufferPtr; -struct _xmlBuffer { - xmlChar *content; /* The buffer content UTF8 */ - unsigned int use; /* The buffer size used */ - unsigned int size; /* The buffer size */ - xmlBufferAllocationScheme alloc; /* The realloc method */ -}; - -/** * xmlNode: * * A node in an XML tree. |
