1 /*
2  * Summary: Defines which libxml2 modules are compiled in for XML Engine
3  * Description: Defines which libxml2 modules are compiled in for XML Engine
4  *
5  * Copy: See Copyright for the status of this software.
6  *
7  * Author: Daniel Veillard
8  * Portion Copyright � 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
9  */
10 
11 /**
12  @file
13  @publishedAll
14  @released
15 */
16 #ifndef LIBXML2_MODULES_H
17 #define LIBXML2_MODULES_H
18 
19 // All new configuration directives are in:
20 #include <xmlengconfig.h>
21 
22 #ifdef XMLENGINE_EXCLUDE_EMBED_MSG
23 extern const char * const __embedded_errtxt_replacement;
24 #define  EMBED_ERRTXT(str) NULL
25 //#define  EMBED_ERRTXT(str) __embedded_errtxt_replacement
26 #else
27 #define  EMBED_ERRTXT(str) str
28 #endif
29 
30 #ifdef IN_LIBXML
31 #   define  OOM_FLAG        (xmlOOM)
32 #else
33 // DO NOT USE "xmlOOM" outside of Libxml2 code!!!
34 // (xmlOOM is an internal macro for accessing value via TLS)
35 #   define  OOM_FLAG        (xmlOOMFlag())
36 #endif
37 
38 #   define  SET_OOM_FLAG    xmlSetOOM()
39 #   define  RESET_OOM_FLAG  xmlResetOOM()
40 
41 /*
42 *  _xmlDoc struct has field 'cachedGs'
43 *  where result of xmlGetGlobalState() is stored
44 *
45 *  (cachedGs field is not in the part that is common with _xmlNode and _xmlAttr)
46 */
47 #define LIBXML_ENABLE_GS_CACHING_IN_DOC
48 #define LIBXML_ENABLE_GS_CACHING_IN_CTXT
49 
50 /*
51 *   struct members
52 *       _xmlNode.line,  _xmlRef.lineno, _xmlID.lineno
53 *   and all related functions/code
54 *   are excluded from the current configuration if this is commented out:
55 */
56 //#define LIBXML_ENABLE_NODE_LINEINFO
57 
58 /**
59  * LIBXML_CATALOG_ENABLED:
60  *
61  * Whether the Catalog support is configured in
62  */
63 //#define LIBXML_CATALOG_ENABLED
64 
65 /**
66  * LIBXML_THREAD_ENABLED:
67  *
68  * Whether the thread support is configured in
69  */
70 //#define LIBXML_THREAD_ENABLED
71 
72 /**
73  * LIBXML_TREE_ENABLED:
74  *
75  * Whether the DOM like tree manipulation API support is configured in
76  */
77 #define LIBXML_TREE_ENABLED
78 
79 /**
80  * LIBXML_OUTPUT_ENABLED:
81  *
82  * Whether the serialization/saving support is configured in
83  */
84 #define LIBXML_OUTPUT_ENABLED
85 
86 /**
87  * LIBXML_PUSH_ENABLED:
88  *
89  * Whether the push parsing interfaces are configured in
90  */
91 #define LIBXML_PUSH_ENABLED
92 
93 /**
94  * LIBXML_READER_ENABLED:
95  *
96  * Whether the xmlReader parsing interface is configured in
97  */
98 #define LIBXML_READER_ENABLED
99 
100 /**
101  * LIBXML_PATTERN_ENABLED:
102  *
103  * Whether the xmlPattern node selection interface is configured in
104  */
105 //#define LIBXML_PATTERN_ENABLED
106 
107 /**
108  * LIBXML_WRITER_ENABLED:
109  *
110  * Whether the xmlWriter saving interface is configured in
111  */
112 #define LIBXML_WRITER_ENABLED
113 
114 /**
115  * LIBXML_SAX1_ENABLED:
116  *
117  * Whether the older SAX1 interface is configured in
118  */
119 #define LIBXML_SAX1_ENABLED
120 
121 /**
122  * LIBXML_VALID_ENABLED:
123  *
124  * Whether the DTD validation support is configured in
125  */
126 //#define LIBXML_VALID_ENABLED
127 
128 /**
129  * LIBXML_HTML_ENABLED:
130  *
131  * Whether the HTML support is configured in
132  */
133 //#define LIBXML_HTML_ENABLED
134 
135 /**
136  * LIBXML_LEGACY_ENABLED:
137  *
138  * Whether the deprecated APIs are compiled in for compatibility
139  */
140 //#define LIBXML_LEGACY_ENABLED
141 
142 /**
143  * LIBXML_C14N_ENABLED:
144  *
145  * Whether the Canonicalization support is configured in
146  */
147 #define LIBXML_C14N_ENABLED
148 
149 /**
150  * LIBXML_XPATH_ENABLED:
151  *
152  * Whether XPath is configured in
153  */
154 #define LIBXML_XPATH_ENABLED
155 
156 /**
157  * LIBXML_XPTR_ENABLED:
158  *
159  * Whether XPointer is configured in
160  */
161 #define LIBXML_XPTR_ENABLED
162 
163 /**
164  * LIBXML_XINCLUDE_ENABLED:
165  *
166  * Whether XInclude is configured in
167  */
168 #define LIBXML_XINCLUDE_ENABLED
169 
170 /**
171  * LIBXML_DEBUG_ENABLED:
172  *
173  * Whether Debugging module is configured in
174  */
175 //#define LIBXML_DEBUG_ENABLED
176 
177 /**
178  * DEBUG_MEMORY_LOCATION:
179  *
180  * Whether the memory debugging is configured in
181  */
182 //#define DEBUG_MEMORY_LOCATION
183 
184 /**
185  * LIBXML_UNICODE_ENABLED:
186  *
187  * Whether the Unicode related interfaces are compiled in
188  */
189 //#define LIBXML_UNICODE_ENABLED
190 
191 /**
192  * LIBXML_REGEXP_ENABLED:
193  *
194  * Whether the regular expressions interfaces are compiled in
195  */
196 //#define LIBXML_REGEXP_ENABLED
197 
198 /**
199  * LIBXML_AUTOMATA_ENABLED:
200  *
201  * Whether the automata interfaces are compiled in
202  */
203 //#define LIBXML_AUTOMATA_ENABLED
204 
205 /**
206  * LIBXML_SCHEMAS_ENABLED:
207  *
208  * Whether the Schemas validation interfaces are compiled in
209  */
210 //#define LIBXML_SCHEMAS_ENABLED
211 
212 #endif /* LIBXML2_MODULES_H */
213