Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 1 | /* |
| 2 | * globals.h: interface for all global variables of the library |
| 3 | * |
| 4 | * The bottom of this file is automatically generated by build_glob.py |
| 5 | * based on the description file global.data |
| 6 | * |
| 7 | * See Copyright for the status of this software. |
| 8 | * |
| 9 | * Gary Pennington <Gary.Pennington@uk.sun.com> |
| 10 | * daniel@veillard.com |
| 11 | */ |
| 12 | |
| 13 | #ifndef __XML_GLOBALS_H |
| 14 | #define __XML_GLOBALS_H |
| 15 | |
| 16 | #include <libxml/parser.h> |
| 17 | #include <libxml/xmlerror.h> |
| 18 | #include <libxml/SAX.h> |
Daniel Veillard | 6c4ffaf | 2002-02-11 08:54:05 +0000 | [diff] [blame] | 19 | #include <libxml/xmlmemory.h> |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 20 | |
| 21 | #ifdef __cplusplus |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 25 | void xmlInitGlobals(void); |
| 26 | void xmlCleanupGlobals(void); |
| 27 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 28 | /* |
| 29 | * Externally global symbols which need to be protected for backwards |
| 30 | * compatibility support. |
| 31 | */ |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 32 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 33 | #undef docbDefaultSAXHandler |
| 34 | #undef htmlDefaultSAXHandler |
| 35 | #undef oldXMLWDcompatibility |
| 36 | #undef xmlBufferAllocScheme |
| 37 | #undef xmlDefaultBufferSize |
| 38 | #undef xmlDefaultSAXHandler |
| 39 | #undef xmlDefaultSAXLocator |
| 40 | #undef xmlDoValidityCheckingDefaultValue |
| 41 | #undef xmlFree |
| 42 | #undef xmlGenericError |
| 43 | #undef xmlGenericErrorContext |
| 44 | #undef xmlGetWarningsDefaultValue |
| 45 | #undef xmlIndentTreeOutput |
Aleksey Sanin | 2300256 | 2002-05-24 07:18:40 +0000 | [diff] [blame] | 46 | #undef xmlTreeIndentString |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 47 | #undef xmlKeepBlanksDefaultValue |
| 48 | #undef xmlLineNumbersDefaultValue |
| 49 | #undef xmlLoadExtDtdDefaultValue |
| 50 | #undef xmlMalloc |
Daniel Veillard | 3c908dc | 2003-04-19 00:07:51 +0000 | [diff] [blame] | 51 | #undef xmlMallocAtomic |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 52 | #undef xmlMemStrdup |
| 53 | #undef xmlParserDebugEntities |
| 54 | #undef xmlParserVersion |
| 55 | #undef xmlPedanticParserDefaultValue |
| 56 | #undef xmlRealloc |
| 57 | #undef xmlSaveNoEmptyTags |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 58 | #undef xmlSubstituteEntitiesDefaultValue |
Daniel Veillard | 5335dc5 | 2003-01-01 20:59:38 +0000 | [diff] [blame] | 59 | #undef xmlRegisterNodeDefaultValue |
| 60 | #undef xmlDeregisterNodeDefaultValue |
| 61 | |
Daniel Veillard | 8326e73 | 2003-01-07 00:19:07 +0000 | [diff] [blame] | 62 | typedef void (*xmlRegisterNodeFunc) (xmlNodePtr node); |
| 63 | typedef void (*xmlDeregisterNodeFunc) (xmlNodePtr node); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 64 | |
| 65 | typedef struct _xmlGlobalState xmlGlobalState; |
| 66 | typedef xmlGlobalState *xmlGlobalStatePtr; |
| 67 | struct _xmlGlobalState |
| 68 | { |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 69 | const char *xmlParserVersion; |
| 70 | |
Daniel Veillard | 3c01b1d | 2001-10-17 15:58:35 +0000 | [diff] [blame] | 71 | xmlSAXLocator xmlDefaultSAXLocator; |
| 72 | xmlSAXHandler xmlDefaultSAXHandler; |
| 73 | xmlSAXHandler docbDefaultSAXHandler; |
| 74 | xmlSAXHandler htmlDefaultSAXHandler; |
| 75 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 76 | xmlFreeFunc xmlFree; |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 77 | xmlMallocFunc xmlMalloc; |
| 78 | xmlStrdupFunc xmlMemStrdup; |
| 79 | xmlReallocFunc xmlRealloc; |
| 80 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 81 | xmlGenericErrorFunc xmlGenericError; |
| 82 | void *xmlGenericErrorContext; |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 83 | |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 84 | int oldXMLWDcompatibility; |
| 85 | |
| 86 | xmlBufferAllocationScheme xmlBufferAllocScheme; |
| 87 | int xmlDefaultBufferSize; |
| 88 | |
| 89 | int xmlSubstituteEntitiesDefaultValue; |
| 90 | int xmlDoValidityCheckingDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 91 | int xmlGetWarningsDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 92 | int xmlKeepBlanksDefaultValue; |
| 93 | int xmlLineNumbersDefaultValue; |
| 94 | int xmlLoadExtDtdDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 95 | int xmlParserDebugEntities; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 96 | int xmlPedanticParserDefaultValue; |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 97 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 98 | int xmlSaveNoEmptyTags; |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 99 | int xmlIndentTreeOutput; |
Aleksey Sanin | 2300256 | 2002-05-24 07:18:40 +0000 | [diff] [blame] | 100 | const char *xmlTreeIndentString; |
Daniel Veillard | 5335dc5 | 2003-01-01 20:59:38 +0000 | [diff] [blame] | 101 | |
| 102 | xmlRegisterNodeFunc xmlRegisterNodeDefaultValue; |
| 103 | xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue; |
Daniel Veillard | 3c908dc | 2003-04-19 00:07:51 +0000 | [diff] [blame] | 104 | |
| 105 | xmlMallocFunc xmlMallocAtomic; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 106 | }; |
| 107 | |
Daniel Veillard | 6c4ffaf | 2002-02-11 08:54:05 +0000 | [diff] [blame] | 108 | #ifdef __cplusplus |
| 109 | } |
| 110 | #endif |
| 111 | #include <libxml/threads.h> |
| 112 | #ifdef __cplusplus |
| 113 | extern "C" { |
| 114 | #endif |
| 115 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 116 | void xmlInitializeGlobalState(xmlGlobalStatePtr gs); |
| 117 | |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 118 | void xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler); |
| 119 | |
Daniel Veillard | 5335dc5 | 2003-01-01 20:59:38 +0000 | [diff] [blame] | 120 | xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func); |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 121 | xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func); |
Daniel Veillard | 5335dc5 | 2003-01-01 20:59:38 +0000 | [diff] [blame] | 122 | xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func); |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 123 | xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func); |
Daniel Veillard | 5335dc5 | 2003-01-01 20:59:38 +0000 | [diff] [blame] | 124 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 125 | /* |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 126 | * In general the memory allocation entry points are not kept |
Daniel Veillard | cbaf399 | 2001-12-31 16:16:02 +0000 | [diff] [blame] | 127 | * thread specific but this can be overridden by LIBXML_THREAD_ALLOC_ENABLED |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 128 | * - xmlMalloc |
Daniel Veillard | 3c908dc | 2003-04-19 00:07:51 +0000 | [diff] [blame] | 129 | * - xmlMallocAtomic |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 130 | * - xmlRealloc |
| 131 | * - xmlMemStrdup |
| 132 | * - xmlFree |
| 133 | */ |
| 134 | |
| 135 | #ifdef LIBXML_THREAD_ALLOC_ENABLED |
| 136 | #ifdef LIBXML_THREAD_ENABLED |
| 137 | extern xmlMallocFunc *__xmlMalloc(void); |
| 138 | #define xmlMalloc \ |
| 139 | (*(__xmlMalloc())) |
| 140 | #else |
| 141 | LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc; |
| 142 | #endif |
| 143 | |
| 144 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | 3c908dc | 2003-04-19 00:07:51 +0000 | [diff] [blame] | 145 | extern xmlMallocFunc *__xmlMallocAtomic(void); |
| 146 | #define xmlMallocAtomic \ |
| 147 | (*(__xmlMallocAtomic())) |
| 148 | #else |
| 149 | LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMallocAtomic; |
| 150 | #endif |
| 151 | |
| 152 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 153 | extern xmlReallocFunc *__xmlRealloc(void); |
| 154 | #define xmlRealloc \ |
| 155 | (*(__xmlRealloc())) |
| 156 | #else |
| 157 | LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc; |
| 158 | #endif |
| 159 | |
| 160 | #ifdef LIBXML_THREAD_ENABLED |
| 161 | extern xmlFreeFunc *__xmlFree(void); |
| 162 | #define xmlFree \ |
| 163 | (*(__xmlFree())) |
| 164 | #else |
| 165 | LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree; |
| 166 | #endif |
| 167 | |
| 168 | #ifdef LIBXML_THREAD_ENABLED |
| 169 | extern xmlStrdupFunc *__xmlMemStrdup(void); |
| 170 | #define xmlMemStrdup \ |
| 171 | (*(__xmlMemStrdup())) |
| 172 | #else |
| 173 | LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup; |
| 174 | #endif |
Daniel Veillard | 3c908dc | 2003-04-19 00:07:51 +0000 | [diff] [blame] | 175 | |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 176 | #else /* !LIBXML_THREAD_ALLOC_ENABLED */ |
| 177 | LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc; |
Daniel Veillard | 3c908dc | 2003-04-19 00:07:51 +0000 | [diff] [blame] | 178 | LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMallocAtomic; |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 179 | LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc; |
| 180 | LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree; |
| 181 | LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup; |
| 182 | #endif /* LIBXML_THREAD_ALLOC_ENABLED */ |
| 183 | |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 184 | #ifdef LIBXML_DOCB_ENABLED |
| 185 | extern xmlSAXHandler *__docbDefaultSAXHandler(void); |
| 186 | #ifdef LIBXML_THREAD_ENABLED |
| 187 | #define docbDefaultSAXHandler \ |
| 188 | (*(__docbDefaultSAXHandler())) |
| 189 | #else |
| 190 | LIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler; |
| 191 | #endif |
| 192 | #endif |
| 193 | |
| 194 | #ifdef LIBXML_HTML_ENABLED |
| 195 | extern xmlSAXHandler *__htmlDefaultSAXHandler(void); |
| 196 | #ifdef LIBXML_THREAD_ENABLED |
| 197 | #define htmlDefaultSAXHandler \ |
| 198 | (*(__htmlDefaultSAXHandler())) |
| 199 | #else |
| 200 | LIBXML_DLL_IMPORT extern xmlSAXHandler htmlDefaultSAXHandler; |
| 201 | #endif |
| 202 | #endif |
| 203 | |
| 204 | |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 205 | /* |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 206 | * Everything starting from the line below is |
| 207 | * Automatically generated by build_glob.py. |
| 208 | * Do not modify the previous line. |
| 209 | */ |
| 210 | |
| 211 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 212 | extern int *__oldXMLWDcompatibility(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 213 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 214 | #define oldXMLWDcompatibility \ |
| 215 | (*(__oldXMLWDcompatibility())) |
| 216 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 217 | LIBXML_DLL_IMPORT extern int oldXMLWDcompatibility; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 218 | #endif |
| 219 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 220 | extern xmlBufferAllocationScheme *__xmlBufferAllocScheme(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 221 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 222 | #define xmlBufferAllocScheme \ |
| 223 | (*(__xmlBufferAllocScheme())) |
| 224 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 225 | LIBXML_DLL_IMPORT extern xmlBufferAllocationScheme xmlBufferAllocScheme; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 226 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 227 | xmlBufferAllocationScheme xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 228 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 229 | extern int *__xmlDefaultBufferSize(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 230 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 231 | #define xmlDefaultBufferSize \ |
| 232 | (*(__xmlDefaultBufferSize())) |
| 233 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 234 | LIBXML_DLL_IMPORT extern int xmlDefaultBufferSize; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 235 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 236 | int xmlThrDefDefaultBufferSize(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 237 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 238 | extern xmlSAXHandler *__xmlDefaultSAXHandler(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 239 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 240 | #define xmlDefaultSAXHandler \ |
| 241 | (*(__xmlDefaultSAXHandler())) |
| 242 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 243 | LIBXML_DLL_IMPORT extern xmlSAXHandler xmlDefaultSAXHandler; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 244 | #endif |
| 245 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 246 | extern xmlSAXLocator *__xmlDefaultSAXLocator(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 247 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 248 | #define xmlDefaultSAXLocator \ |
| 249 | (*(__xmlDefaultSAXLocator())) |
| 250 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 251 | LIBXML_DLL_IMPORT extern xmlSAXLocator xmlDefaultSAXLocator; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 252 | #endif |
| 253 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 254 | extern int *__xmlDoValidityCheckingDefaultValue(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 255 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 256 | #define xmlDoValidityCheckingDefaultValue \ |
| 257 | (*(__xmlDoValidityCheckingDefaultValue())) |
| 258 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 259 | LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 260 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 261 | int xmlThrDefDoValidityCheckingDefaultValue(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 262 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 263 | extern xmlGenericErrorFunc *__xmlGenericError(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 264 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 265 | #define xmlGenericError \ |
| 266 | (*(__xmlGenericError())) |
| 267 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 268 | LIBXML_DLL_IMPORT extern xmlGenericErrorFunc xmlGenericError; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 269 | #endif |
| 270 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 271 | extern void * *__xmlGenericErrorContext(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 272 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 273 | #define xmlGenericErrorContext \ |
| 274 | (*(__xmlGenericErrorContext())) |
| 275 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 276 | LIBXML_DLL_IMPORT extern void * xmlGenericErrorContext; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 277 | #endif |
| 278 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 279 | extern int *__xmlGetWarningsDefaultValue(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 280 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 281 | #define xmlGetWarningsDefaultValue \ |
| 282 | (*(__xmlGetWarningsDefaultValue())) |
| 283 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 284 | LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 285 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 286 | int xmlThrDefGetWarningsDefaultValue(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 287 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 288 | extern int *__xmlIndentTreeOutput(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 289 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 290 | #define xmlIndentTreeOutput \ |
| 291 | (*(__xmlIndentTreeOutput())) |
| 292 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 293 | LIBXML_DLL_IMPORT extern int xmlIndentTreeOutput; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 294 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 295 | int xmlThrDefIndentTreeOutput(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 296 | |
Aleksey Sanin | 2300256 | 2002-05-24 07:18:40 +0000 | [diff] [blame] | 297 | extern const char * *__xmlTreeIndentString(void); |
| 298 | #ifdef LIBXML_THREAD_ENABLED |
| 299 | #define xmlTreeIndentString \ |
| 300 | (*(__xmlTreeIndentString())) |
| 301 | #else |
| 302 | LIBXML_DLL_IMPORT extern const char * xmlTreeIndentString; |
| 303 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 304 | const char * xmlThrDefTreeIndentString(const char * v); |
Aleksey Sanin | 2300256 | 2002-05-24 07:18:40 +0000 | [diff] [blame] | 305 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 306 | extern int *__xmlKeepBlanksDefaultValue(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 307 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 308 | #define xmlKeepBlanksDefaultValue \ |
| 309 | (*(__xmlKeepBlanksDefaultValue())) |
| 310 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 311 | LIBXML_DLL_IMPORT extern int xmlKeepBlanksDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 312 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 313 | int xmlThrDefKeepBlanksDefaultValue(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 314 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 315 | extern int *__xmlLineNumbersDefaultValue(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 316 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 317 | #define xmlLineNumbersDefaultValue \ |
| 318 | (*(__xmlLineNumbersDefaultValue())) |
| 319 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 320 | LIBXML_DLL_IMPORT extern int xmlLineNumbersDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 321 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 322 | int xmlThrDefLineNumbersDefaultValue(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 323 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 324 | extern int *__xmlLoadExtDtdDefaultValue(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 325 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 326 | #define xmlLoadExtDtdDefaultValue \ |
| 327 | (*(__xmlLoadExtDtdDefaultValue())) |
| 328 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 329 | LIBXML_DLL_IMPORT extern int xmlLoadExtDtdDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 330 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 331 | int xmlThrDefLoadExtDtdDefaultValue(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 332 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 333 | extern int *__xmlParserDebugEntities(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 334 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 335 | #define xmlParserDebugEntities \ |
| 336 | (*(__xmlParserDebugEntities())) |
| 337 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 338 | LIBXML_DLL_IMPORT extern int xmlParserDebugEntities; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 339 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 340 | int xmlThrDefParserDebugEntities(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 341 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 342 | extern const char * *__xmlParserVersion(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 343 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 344 | #define xmlParserVersion \ |
| 345 | (*(__xmlParserVersion())) |
| 346 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 347 | LIBXML_DLL_IMPORT extern const char * xmlParserVersion; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 348 | #endif |
| 349 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 350 | extern int *__xmlPedanticParserDefaultValue(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 351 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 352 | #define xmlPedanticParserDefaultValue \ |
| 353 | (*(__xmlPedanticParserDefaultValue())) |
| 354 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 355 | LIBXML_DLL_IMPORT extern int xmlPedanticParserDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 356 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 357 | int xmlThrDefPedanticParserDefaultValue(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 358 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 359 | extern int *__xmlSaveNoEmptyTags(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 360 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 361 | #define xmlSaveNoEmptyTags \ |
| 362 | (*(__xmlSaveNoEmptyTags())) |
| 363 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 364 | LIBXML_DLL_IMPORT extern int xmlSaveNoEmptyTags; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 365 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 366 | int xmlThrDefSaveNoEmptyTags(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 367 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 368 | extern int *__xmlSubstituteEntitiesDefaultValue(void); |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 369 | #ifdef LIBXML_THREAD_ENABLED |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 370 | #define xmlSubstituteEntitiesDefaultValue \ |
| 371 | (*(__xmlSubstituteEntitiesDefaultValue())) |
| 372 | #else |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 373 | LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue; |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 374 | #endif |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 375 | int xmlThrDefSubstituteEntitiesDefaultValue(int v); |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 376 | |
Daniel Veillard | 5335dc5 | 2003-01-01 20:59:38 +0000 | [diff] [blame] | 377 | extern xmlRegisterNodeFunc *__xmlRegisterNodeDefaultValue(void); |
| 378 | #ifdef LIBXML_THREAD_ENABLED |
| 379 | #define xmlRegisterNodeDefaultValue \ |
| 380 | (*(__xmlRegisterNodeDefaultValue())) |
| 381 | #else |
| 382 | LIBXML_DLL_IMPORT extern xmlRegisterNodeFunc xmlRegisterNodeDefaultValue; |
| 383 | #endif |
| 384 | |
| 385 | extern xmlDeregisterNodeFunc *__xmlDeregisterNodeDefaultValue(void); |
| 386 | #ifdef LIBXML_THREAD_ENABLED |
| 387 | #define xmlDeregisterNodeDefaultValue \ |
| 388 | (*(__xmlDeregisterNodeDefaultValue())) |
| 389 | #else |
| 390 | LIBXML_DLL_IMPORT extern xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue; |
| 391 | #endif |
| 392 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 393 | #ifdef __cplusplus |
| 394 | } |
| 395 | #endif |
| 396 | |
| 397 | #endif /* __XML_GLOBALS_H */ |