lxml 6.0.0__cp310-cp310-manylinux_2_31_armv7l.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. lxml/ElementInclude.py +244 -0
  2. lxml/__init__.py +22 -0
  3. lxml/_elementpath.cpython-310-arm-linux-gnueabihf.so +0 -0
  4. lxml/_elementpath.py +343 -0
  5. lxml/apihelpers.pxi +1801 -0
  6. lxml/builder.cpython-310-arm-linux-gnueabihf.so +0 -0
  7. lxml/builder.py +243 -0
  8. lxml/classlookup.pxi +580 -0
  9. lxml/cleanup.pxi +215 -0
  10. lxml/cssselect.py +101 -0
  11. lxml/debug.pxi +36 -0
  12. lxml/docloader.pxi +178 -0
  13. lxml/doctestcompare.py +488 -0
  14. lxml/dtd.pxi +479 -0
  15. lxml/etree.cpython-310-arm-linux-gnueabihf.so +0 -0
  16. lxml/etree.h +244 -0
  17. lxml/etree.pyx +3853 -0
  18. lxml/etree_api.h +204 -0
  19. lxml/extensions.pxi +830 -0
  20. lxml/html/ElementSoup.py +10 -0
  21. lxml/html/__init__.py +1927 -0
  22. lxml/html/_diffcommand.py +86 -0
  23. lxml/html/_difflib.cpython-310-arm-linux-gnueabihf.so +0 -0
  24. lxml/html/_difflib.py +2106 -0
  25. lxml/html/_html5builder.py +100 -0
  26. lxml/html/_setmixin.py +56 -0
  27. lxml/html/builder.py +173 -0
  28. lxml/html/clean.py +21 -0
  29. lxml/html/defs.py +135 -0
  30. lxml/html/diff.cpython-310-arm-linux-gnueabihf.so +0 -0
  31. lxml/html/diff.py +972 -0
  32. lxml/html/formfill.py +299 -0
  33. lxml/html/html5parser.py +260 -0
  34. lxml/html/soupparser.py +314 -0
  35. lxml/html/usedoctest.py +13 -0
  36. lxml/includes/__init__.pxd +0 -0
  37. lxml/includes/__init__.py +0 -0
  38. lxml/includes/c14n.pxd +25 -0
  39. lxml/includes/config.pxd +3 -0
  40. lxml/includes/dtdvalid.pxd +18 -0
  41. lxml/includes/etree_defs.h +379 -0
  42. lxml/includes/etreepublic.pxd +237 -0
  43. lxml/includes/extlibs/__init__.py +0 -0
  44. lxml/includes/extlibs/libcharset.h +45 -0
  45. lxml/includes/extlibs/localcharset.h +137 -0
  46. lxml/includes/extlibs/zconf.h +543 -0
  47. lxml/includes/extlibs/zlib.h +1938 -0
  48. lxml/includes/htmlparser.pxd +56 -0
  49. lxml/includes/libexslt/__init__.py +0 -0
  50. lxml/includes/libexslt/exslt.h +108 -0
  51. lxml/includes/libexslt/exsltconfig.h +70 -0
  52. lxml/includes/libexslt/exsltexports.h +63 -0
  53. lxml/includes/libxml/HTMLparser.h +339 -0
  54. lxml/includes/libxml/HTMLtree.h +148 -0
  55. lxml/includes/libxml/SAX.h +18 -0
  56. lxml/includes/libxml/SAX2.h +170 -0
  57. lxml/includes/libxml/__init__.py +0 -0
  58. lxml/includes/libxml/c14n.h +115 -0
  59. lxml/includes/libxml/catalog.h +183 -0
  60. lxml/includes/libxml/chvalid.h +230 -0
  61. lxml/includes/libxml/debugXML.h +79 -0
  62. lxml/includes/libxml/dict.h +82 -0
  63. lxml/includes/libxml/encoding.h +307 -0
  64. lxml/includes/libxml/entities.h +147 -0
  65. lxml/includes/libxml/globals.h +25 -0
  66. lxml/includes/libxml/hash.h +251 -0
  67. lxml/includes/libxml/list.h +137 -0
  68. lxml/includes/libxml/nanoftp.h +16 -0
  69. lxml/includes/libxml/nanohttp.h +98 -0
  70. lxml/includes/libxml/parser.h +1633 -0
  71. lxml/includes/libxml/parserInternals.h +591 -0
  72. lxml/includes/libxml/relaxng.h +224 -0
  73. lxml/includes/libxml/schemasInternals.h +959 -0
  74. lxml/includes/libxml/schematron.h +143 -0
  75. lxml/includes/libxml/threads.h +81 -0
  76. lxml/includes/libxml/tree.h +1326 -0
  77. lxml/includes/libxml/uri.h +106 -0
  78. lxml/includes/libxml/valid.h +485 -0
  79. lxml/includes/libxml/xinclude.h +141 -0
  80. lxml/includes/libxml/xlink.h +193 -0
  81. lxml/includes/libxml/xmlIO.h +419 -0
  82. lxml/includes/libxml/xmlautomata.h +163 -0
  83. lxml/includes/libxml/xmlerror.h +962 -0
  84. lxml/includes/libxml/xmlexports.h +96 -0
  85. lxml/includes/libxml/xmlmemory.h +188 -0
  86. lxml/includes/libxml/xmlmodule.h +61 -0
  87. lxml/includes/libxml/xmlreader.h +444 -0
  88. lxml/includes/libxml/xmlregexp.h +116 -0
  89. lxml/includes/libxml/xmlsave.h +111 -0
  90. lxml/includes/libxml/xmlschemas.h +254 -0
  91. lxml/includes/libxml/xmlschemastypes.h +152 -0
  92. lxml/includes/libxml/xmlstring.h +140 -0
  93. lxml/includes/libxml/xmlunicode.h +15 -0
  94. lxml/includes/libxml/xmlversion.h +332 -0
  95. lxml/includes/libxml/xmlwriter.h +489 -0
  96. lxml/includes/libxml/xpath.h +569 -0
  97. lxml/includes/libxml/xpathInternals.h +639 -0
  98. lxml/includes/libxml/xpointer.h +48 -0
  99. lxml/includes/libxslt/__init__.py +0 -0
  100. lxml/includes/libxslt/attributes.h +39 -0
  101. lxml/includes/libxslt/documents.h +93 -0
  102. lxml/includes/libxslt/extensions.h +262 -0
  103. lxml/includes/libxslt/extra.h +72 -0
  104. lxml/includes/libxslt/functions.h +78 -0
  105. lxml/includes/libxslt/imports.h +75 -0
  106. lxml/includes/libxslt/keys.h +53 -0
  107. lxml/includes/libxslt/namespaces.h +68 -0
  108. lxml/includes/libxslt/numbersInternals.h +73 -0
  109. lxml/includes/libxslt/pattern.h +84 -0
  110. lxml/includes/libxslt/preproc.h +43 -0
  111. lxml/includes/libxslt/security.h +104 -0
  112. lxml/includes/libxslt/templates.h +77 -0
  113. lxml/includes/libxslt/transform.h +207 -0
  114. lxml/includes/libxslt/variables.h +118 -0
  115. lxml/includes/libxslt/xslt.h +110 -0
  116. lxml/includes/libxslt/xsltInternals.h +1995 -0
  117. lxml/includes/libxslt/xsltconfig.h +146 -0
  118. lxml/includes/libxslt/xsltexports.h +64 -0
  119. lxml/includes/libxslt/xsltlocale.h +44 -0
  120. lxml/includes/libxslt/xsltutils.h +343 -0
  121. lxml/includes/lxml-version.h +3 -0
  122. lxml/includes/relaxng.pxd +64 -0
  123. lxml/includes/schematron.pxd +34 -0
  124. lxml/includes/tree.pxd +492 -0
  125. lxml/includes/uri.pxd +5 -0
  126. lxml/includes/xinclude.pxd +22 -0
  127. lxml/includes/xmlerror.pxd +852 -0
  128. lxml/includes/xmlparser.pxd +303 -0
  129. lxml/includes/xmlschema.pxd +35 -0
  130. lxml/includes/xpath.pxd +136 -0
  131. lxml/includes/xslt.pxd +190 -0
  132. lxml/isoschematron/__init__.py +348 -0
  133. lxml/isoschematron/resources/rng/iso-schematron.rng +709 -0
  134. lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -0
  135. lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl +77 -0
  136. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +313 -0
  137. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1160 -0
  138. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
  139. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -0
  140. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -0
  141. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt +84 -0
  142. lxml/iterparse.pxi +438 -0
  143. lxml/lxml.etree.h +244 -0
  144. lxml/lxml.etree_api.h +204 -0
  145. lxml/nsclasses.pxi +281 -0
  146. lxml/objectify.cpython-310-arm-linux-gnueabihf.so +0 -0
  147. lxml/objectify.pyx +2149 -0
  148. lxml/objectpath.pxi +332 -0
  149. lxml/parser.pxi +2059 -0
  150. lxml/parsertarget.pxi +180 -0
  151. lxml/proxy.pxi +619 -0
  152. lxml/public-api.pxi +178 -0
  153. lxml/pyclasslookup.py +3 -0
  154. lxml/readonlytree.pxi +565 -0
  155. lxml/relaxng.pxi +165 -0
  156. lxml/sax.cpython-310-arm-linux-gnueabihf.so +0 -0
  157. lxml/sax.py +286 -0
  158. lxml/saxparser.pxi +875 -0
  159. lxml/schematron.pxi +173 -0
  160. lxml/serializer.pxi +1849 -0
  161. lxml/usedoctest.py +13 -0
  162. lxml/xinclude.pxi +67 -0
  163. lxml/xmlerror.pxi +1654 -0
  164. lxml/xmlid.pxi +179 -0
  165. lxml/xmlschema.pxi +215 -0
  166. lxml/xpath.pxi +487 -0
  167. lxml/xslt.pxi +957 -0
  168. lxml/xsltext.pxi +242 -0
  169. lxml-6.0.0.dist-info/METADATA +163 -0
  170. lxml-6.0.0.dist-info/RECORD +174 -0
  171. lxml-6.0.0.dist-info/WHEEL +5 -0
  172. lxml-6.0.0.dist-info/licenses/LICENSE.txt +31 -0
  173. lxml-6.0.0.dist-info/licenses/LICENSES.txt +29 -0
  174. lxml-6.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,147 @@
1
+ /*
2
+ * Summary: interface for the XML entities handling
3
+ * Description: this module provides some of the entity API needed
4
+ * for the parser and applications.
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Daniel Veillard
9
+ */
10
+
11
+ #ifndef __XML_ENTITIES_H__
12
+ #define __XML_ENTITIES_H__
13
+
14
+ /** DOC_DISABLE */
15
+ #include <libxml/xmlversion.h>
16
+ #define XML_TREE_INTERNALS
17
+ #include <libxml/tree.h>
18
+ #undef XML_TREE_INTERNALS
19
+ /** DOC_ENABLE */
20
+
21
+ #ifdef __cplusplus
22
+ extern "C" {
23
+ #endif
24
+
25
+ /*
26
+ * The different valid entity types.
27
+ */
28
+ typedef enum {
29
+ XML_INTERNAL_GENERAL_ENTITY = 1,
30
+ XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2,
31
+ XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3,
32
+ XML_INTERNAL_PARAMETER_ENTITY = 4,
33
+ XML_EXTERNAL_PARAMETER_ENTITY = 5,
34
+ XML_INTERNAL_PREDEFINED_ENTITY = 6
35
+ } xmlEntityType;
36
+
37
+ /*
38
+ * An unit of storage for an entity, contains the string, the value
39
+ * and the linkind data needed for the linking in the hash table.
40
+ */
41
+
42
+ struct _xmlEntity {
43
+ void *_private; /* application data */
44
+ xmlElementType type; /* XML_ENTITY_DECL, must be second ! */
45
+ const xmlChar *name; /* Entity name */
46
+ struct _xmlNode *children; /* First child link */
47
+ struct _xmlNode *last; /* Last child link */
48
+ struct _xmlDtd *parent; /* -> DTD */
49
+ struct _xmlNode *next; /* next sibling link */
50
+ struct _xmlNode *prev; /* previous sibling link */
51
+ struct _xmlDoc *doc; /* the containing document */
52
+
53
+ xmlChar *orig; /* content without ref substitution */
54
+ xmlChar *content; /* content or ndata if unparsed */
55
+ int length; /* the content length */
56
+ xmlEntityType etype; /* The entity type */
57
+ const xmlChar *ExternalID; /* External identifier for PUBLIC */
58
+ const xmlChar *SystemID; /* URI for a SYSTEM or PUBLIC Entity */
59
+
60
+ struct _xmlEntity *nexte; /* unused */
61
+ const xmlChar *URI; /* the full URI as computed */
62
+ int owner; /* unused */
63
+ int flags; /* various flags */
64
+ unsigned long expandedSize; /* expanded size */
65
+ };
66
+
67
+ /*
68
+ * All entities are stored in an hash table.
69
+ * There is 2 separate hash tables for global and parameter entities.
70
+ */
71
+
72
+ typedef struct _xmlHashTable xmlEntitiesTable;
73
+ typedef xmlEntitiesTable *xmlEntitiesTablePtr;
74
+
75
+ /*
76
+ * External functions:
77
+ */
78
+
79
+ XMLPUBFUN xmlEntityPtr
80
+ xmlNewEntity (xmlDocPtr doc,
81
+ const xmlChar *name,
82
+ int type,
83
+ const xmlChar *ExternalID,
84
+ const xmlChar *SystemID,
85
+ const xmlChar *content);
86
+ XMLPUBFUN void
87
+ xmlFreeEntity (xmlEntityPtr entity);
88
+ XMLPUBFUN int
89
+ xmlAddEntity (xmlDocPtr doc,
90
+ int extSubset,
91
+ const xmlChar *name,
92
+ int type,
93
+ const xmlChar *ExternalID,
94
+ const xmlChar *SystemID,
95
+ const xmlChar *content,
96
+ xmlEntityPtr *out);
97
+ XMLPUBFUN xmlEntityPtr
98
+ xmlAddDocEntity (xmlDocPtr doc,
99
+ const xmlChar *name,
100
+ int type,
101
+ const xmlChar *ExternalID,
102
+ const xmlChar *SystemID,
103
+ const xmlChar *content);
104
+ XMLPUBFUN xmlEntityPtr
105
+ xmlAddDtdEntity (xmlDocPtr doc,
106
+ const xmlChar *name,
107
+ int type,
108
+ const xmlChar *ExternalID,
109
+ const xmlChar *SystemID,
110
+ const xmlChar *content);
111
+ XMLPUBFUN xmlEntityPtr
112
+ xmlGetPredefinedEntity (const xmlChar *name);
113
+ XMLPUBFUN xmlEntityPtr
114
+ xmlGetDocEntity (const xmlDoc *doc,
115
+ const xmlChar *name);
116
+ XMLPUBFUN xmlEntityPtr
117
+ xmlGetDtdEntity (xmlDocPtr doc,
118
+ const xmlChar *name);
119
+ XMLPUBFUN xmlEntityPtr
120
+ xmlGetParameterEntity (xmlDocPtr doc,
121
+ const xmlChar *name);
122
+ XMLPUBFUN xmlChar *
123
+ xmlEncodeEntitiesReentrant(xmlDocPtr doc,
124
+ const xmlChar *input);
125
+ XMLPUBFUN xmlChar *
126
+ xmlEncodeSpecialChars (const xmlDoc *doc,
127
+ const xmlChar *input);
128
+ XMLPUBFUN xmlEntitiesTablePtr
129
+ xmlCreateEntitiesTable (void);
130
+ XMLPUBFUN xmlEntitiesTablePtr
131
+ xmlCopyEntitiesTable (xmlEntitiesTablePtr table);
132
+ XMLPUBFUN void
133
+ xmlFreeEntitiesTable (xmlEntitiesTablePtr table);
134
+ #ifdef LIBXML_OUTPUT_ENABLED
135
+ XMLPUBFUN void
136
+ xmlDumpEntitiesTable (xmlBufferPtr buf,
137
+ xmlEntitiesTablePtr table);
138
+ XMLPUBFUN void
139
+ xmlDumpEntityDecl (xmlBufferPtr buf,
140
+ xmlEntityPtr ent);
141
+ #endif /* LIBXML_OUTPUT_ENABLED */
142
+
143
+ #ifdef __cplusplus
144
+ }
145
+ #endif
146
+
147
+ # endif /* __XML_ENTITIES_H__ */
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Summary: interface for all global variables of the library
3
+ * Description: Deprecated, don't use
4
+ *
5
+ * Copy: See Copyright for the status of this software.
6
+ */
7
+
8
+ #ifndef __XML_GLOBALS_H
9
+ #define __XML_GLOBALS_H
10
+
11
+ #include <libxml/xmlversion.h>
12
+
13
+ /*
14
+ * This file was required to access global variables until version v2.12.0.
15
+ *
16
+ * These includes are for backward compatibility.
17
+ */
18
+ #include <libxml/HTMLparser.h>
19
+ #include <libxml/parser.h>
20
+ #include <libxml/xmlerror.h>
21
+ #include <libxml/xmlIO.h>
22
+ #include <libxml/xmlsave.h>
23
+ #include <libxml/threads.h>
24
+
25
+ #endif /* __XML_GLOBALS_H */
@@ -0,0 +1,251 @@
1
+ /*
2
+ * Summary: Chained hash tables
3
+ * Description: This module implements the hash table support used in
4
+ * various places in the library.
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Bjorn Reese <bjorn.reese@systematic.dk>
9
+ */
10
+
11
+ #ifndef __XML_HASH_H__
12
+ #define __XML_HASH_H__
13
+
14
+ #include <libxml/xmlversion.h>
15
+ #include <libxml/dict.h>
16
+ #include <libxml/xmlstring.h>
17
+
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+
22
+ /*
23
+ * The hash table.
24
+ */
25
+ typedef struct _xmlHashTable xmlHashTable;
26
+ typedef xmlHashTable *xmlHashTablePtr;
27
+
28
+ /*
29
+ * Recent version of gcc produce a warning when a function pointer is assigned
30
+ * to an object pointer, or vice versa. The following macro is a dirty hack
31
+ * to allow suppression of the warning. If your architecture has function
32
+ * pointers which are a different size than a void pointer, there may be some
33
+ * serious trouble within the library.
34
+ */
35
+ /**
36
+ * XML_CAST_FPTR:
37
+ * @fptr: pointer to a function
38
+ *
39
+ * Macro to do a casting from an object pointer to a
40
+ * function pointer without encountering a warning from
41
+ * gcc
42
+ *
43
+ * #define XML_CAST_FPTR(fptr) (*(void **)(&fptr))
44
+ * This macro violated ISO C aliasing rules (gcc4 on s390 broke)
45
+ * so it is disabled now
46
+ */
47
+
48
+ #define XML_CAST_FPTR(fptr) fptr
49
+
50
+ /*
51
+ * function types:
52
+ */
53
+ /**
54
+ * xmlHashDeallocator:
55
+ * @payload: the data in the hash
56
+ * @name: the name associated
57
+ *
58
+ * Callback to free data from a hash.
59
+ */
60
+ typedef void (*xmlHashDeallocator)(void *payload, const xmlChar *name);
61
+ /**
62
+ * xmlHashCopier:
63
+ * @payload: the data in the hash
64
+ * @name: the name associated
65
+ *
66
+ * Callback to copy data from a hash.
67
+ *
68
+ * Returns a copy of the data or NULL in case of error.
69
+ */
70
+ typedef void *(*xmlHashCopier)(void *payload, const xmlChar *name);
71
+ /**
72
+ * xmlHashScanner:
73
+ * @payload: the data in the hash
74
+ * @data: extra scanner data
75
+ * @name: the name associated
76
+ *
77
+ * Callback when scanning data in a hash with the simple scanner.
78
+ */
79
+ typedef void (*xmlHashScanner)(void *payload, void *data, const xmlChar *name);
80
+ /**
81
+ * xmlHashScannerFull:
82
+ * @payload: the data in the hash
83
+ * @data: extra scanner data
84
+ * @name: the name associated
85
+ * @name2: the second name associated
86
+ * @name3: the third name associated
87
+ *
88
+ * Callback when scanning data in a hash with the full scanner.
89
+ */
90
+ typedef void (*xmlHashScannerFull)(void *payload, void *data,
91
+ const xmlChar *name, const xmlChar *name2,
92
+ const xmlChar *name3);
93
+
94
+ /*
95
+ * Constructor and destructor.
96
+ */
97
+ XMLPUBFUN xmlHashTablePtr
98
+ xmlHashCreate (int size);
99
+ XMLPUBFUN xmlHashTablePtr
100
+ xmlHashCreateDict (int size,
101
+ xmlDictPtr dict);
102
+ XMLPUBFUN void
103
+ xmlHashFree (xmlHashTablePtr hash,
104
+ xmlHashDeallocator dealloc);
105
+ XMLPUBFUN void
106
+ xmlHashDefaultDeallocator(void *entry,
107
+ const xmlChar *name);
108
+
109
+ /*
110
+ * Add a new entry to the hash table.
111
+ */
112
+ XMLPUBFUN int
113
+ xmlHashAdd (xmlHashTablePtr hash,
114
+ const xmlChar *name,
115
+ void *userdata);
116
+ XMLPUBFUN int
117
+ xmlHashAddEntry (xmlHashTablePtr hash,
118
+ const xmlChar *name,
119
+ void *userdata);
120
+ XMLPUBFUN int
121
+ xmlHashUpdateEntry (xmlHashTablePtr hash,
122
+ const xmlChar *name,
123
+ void *userdata,
124
+ xmlHashDeallocator dealloc);
125
+ XMLPUBFUN int
126
+ xmlHashAdd2 (xmlHashTablePtr hash,
127
+ const xmlChar *name,
128
+ const xmlChar *name2,
129
+ void *userdata);
130
+ XMLPUBFUN int
131
+ xmlHashAddEntry2 (xmlHashTablePtr hash,
132
+ const xmlChar *name,
133
+ const xmlChar *name2,
134
+ void *userdata);
135
+ XMLPUBFUN int
136
+ xmlHashUpdateEntry2 (xmlHashTablePtr hash,
137
+ const xmlChar *name,
138
+ const xmlChar *name2,
139
+ void *userdata,
140
+ xmlHashDeallocator dealloc);
141
+ XMLPUBFUN int
142
+ xmlHashAdd3 (xmlHashTablePtr hash,
143
+ const xmlChar *name,
144
+ const xmlChar *name2,
145
+ const xmlChar *name3,
146
+ void *userdata);
147
+ XMLPUBFUN int
148
+ xmlHashAddEntry3 (xmlHashTablePtr hash,
149
+ const xmlChar *name,
150
+ const xmlChar *name2,
151
+ const xmlChar *name3,
152
+ void *userdata);
153
+ XMLPUBFUN int
154
+ xmlHashUpdateEntry3 (xmlHashTablePtr hash,
155
+ const xmlChar *name,
156
+ const xmlChar *name2,
157
+ const xmlChar *name3,
158
+ void *userdata,
159
+ xmlHashDeallocator dealloc);
160
+
161
+ /*
162
+ * Remove an entry from the hash table.
163
+ */
164
+ XMLPUBFUN int
165
+ xmlHashRemoveEntry (xmlHashTablePtr hash,
166
+ const xmlChar *name,
167
+ xmlHashDeallocator dealloc);
168
+ XMLPUBFUN int
169
+ xmlHashRemoveEntry2 (xmlHashTablePtr hash,
170
+ const xmlChar *name,
171
+ const xmlChar *name2,
172
+ xmlHashDeallocator dealloc);
173
+ XMLPUBFUN int
174
+ xmlHashRemoveEntry3 (xmlHashTablePtr hash,
175
+ const xmlChar *name,
176
+ const xmlChar *name2,
177
+ const xmlChar *name3,
178
+ xmlHashDeallocator dealloc);
179
+
180
+ /*
181
+ * Retrieve the payload.
182
+ */
183
+ XMLPUBFUN void *
184
+ xmlHashLookup (xmlHashTablePtr hash,
185
+ const xmlChar *name);
186
+ XMLPUBFUN void *
187
+ xmlHashLookup2 (xmlHashTablePtr hash,
188
+ const xmlChar *name,
189
+ const xmlChar *name2);
190
+ XMLPUBFUN void *
191
+ xmlHashLookup3 (xmlHashTablePtr hash,
192
+ const xmlChar *name,
193
+ const xmlChar *name2,
194
+ const xmlChar *name3);
195
+ XMLPUBFUN void *
196
+ xmlHashQLookup (xmlHashTablePtr hash,
197
+ const xmlChar *prefix,
198
+ const xmlChar *name);
199
+ XMLPUBFUN void *
200
+ xmlHashQLookup2 (xmlHashTablePtr hash,
201
+ const xmlChar *prefix,
202
+ const xmlChar *name,
203
+ const xmlChar *prefix2,
204
+ const xmlChar *name2);
205
+ XMLPUBFUN void *
206
+ xmlHashQLookup3 (xmlHashTablePtr hash,
207
+ const xmlChar *prefix,
208
+ const xmlChar *name,
209
+ const xmlChar *prefix2,
210
+ const xmlChar *name2,
211
+ const xmlChar *prefix3,
212
+ const xmlChar *name3);
213
+
214
+ /*
215
+ * Helpers.
216
+ */
217
+ XMLPUBFUN xmlHashTablePtr
218
+ xmlHashCopySafe (xmlHashTablePtr hash,
219
+ xmlHashCopier copy,
220
+ xmlHashDeallocator dealloc);
221
+ XMLPUBFUN xmlHashTablePtr
222
+ xmlHashCopy (xmlHashTablePtr hash,
223
+ xmlHashCopier copy);
224
+ XMLPUBFUN int
225
+ xmlHashSize (xmlHashTablePtr hash);
226
+ XMLPUBFUN void
227
+ xmlHashScan (xmlHashTablePtr hash,
228
+ xmlHashScanner scan,
229
+ void *data);
230
+ XMLPUBFUN void
231
+ xmlHashScan3 (xmlHashTablePtr hash,
232
+ const xmlChar *name,
233
+ const xmlChar *name2,
234
+ const xmlChar *name3,
235
+ xmlHashScanner scan,
236
+ void *data);
237
+ XMLPUBFUN void
238
+ xmlHashScanFull (xmlHashTablePtr hash,
239
+ xmlHashScannerFull scan,
240
+ void *data);
241
+ XMLPUBFUN void
242
+ xmlHashScanFull3 (xmlHashTablePtr hash,
243
+ const xmlChar *name,
244
+ const xmlChar *name2,
245
+ const xmlChar *name3,
246
+ xmlHashScannerFull scan,
247
+ void *data);
248
+ #ifdef __cplusplus
249
+ }
250
+ #endif
251
+ #endif /* ! __XML_HASH_H__ */
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Summary: lists interfaces
3
+ * Description: this module implement the list support used in
4
+ * various place in the library.
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Gary Pennington <Gary.Pennington@uk.sun.com>
9
+ */
10
+
11
+ #ifndef __XML_LINK_INCLUDE__
12
+ #define __XML_LINK_INCLUDE__
13
+
14
+ #include <libxml/xmlversion.h>
15
+
16
+ #ifdef __cplusplus
17
+ extern "C" {
18
+ #endif
19
+
20
+ typedef struct _xmlLink xmlLink;
21
+ typedef xmlLink *xmlLinkPtr;
22
+
23
+ typedef struct _xmlList xmlList;
24
+ typedef xmlList *xmlListPtr;
25
+
26
+ /**
27
+ * xmlListDeallocator:
28
+ * @lk: the data to deallocate
29
+ *
30
+ * Callback function used to free data from a list.
31
+ */
32
+ typedef void (*xmlListDeallocator) (xmlLinkPtr lk);
33
+ /**
34
+ * xmlListDataCompare:
35
+ * @data0: the first data
36
+ * @data1: the second data
37
+ *
38
+ * Callback function used to compare 2 data.
39
+ *
40
+ * Returns 0 is equality, -1 or 1 otherwise depending on the ordering.
41
+ */
42
+ typedef int (*xmlListDataCompare) (const void *data0, const void *data1);
43
+ /**
44
+ * xmlListWalker:
45
+ * @data: the data found in the list
46
+ * @user: extra user provided data to the walker
47
+ *
48
+ * Callback function used when walking a list with xmlListWalk().
49
+ *
50
+ * Returns 0 to stop walking the list, 1 otherwise.
51
+ */
52
+ typedef int (*xmlListWalker) (const void *data, void *user);
53
+
54
+ /* Creation/Deletion */
55
+ XMLPUBFUN xmlListPtr
56
+ xmlListCreate (xmlListDeallocator deallocator,
57
+ xmlListDataCompare compare);
58
+ XMLPUBFUN void
59
+ xmlListDelete (xmlListPtr l);
60
+
61
+ /* Basic Operators */
62
+ XMLPUBFUN void *
63
+ xmlListSearch (xmlListPtr l,
64
+ void *data);
65
+ XMLPUBFUN void *
66
+ xmlListReverseSearch (xmlListPtr l,
67
+ void *data);
68
+ XMLPUBFUN int
69
+ xmlListInsert (xmlListPtr l,
70
+ void *data) ;
71
+ XMLPUBFUN int
72
+ xmlListAppend (xmlListPtr l,
73
+ void *data) ;
74
+ XMLPUBFUN int
75
+ xmlListRemoveFirst (xmlListPtr l,
76
+ void *data);
77
+ XMLPUBFUN int
78
+ xmlListRemoveLast (xmlListPtr l,
79
+ void *data);
80
+ XMLPUBFUN int
81
+ xmlListRemoveAll (xmlListPtr l,
82
+ void *data);
83
+ XMLPUBFUN void
84
+ xmlListClear (xmlListPtr l);
85
+ XMLPUBFUN int
86
+ xmlListEmpty (xmlListPtr l);
87
+ XMLPUBFUN xmlLinkPtr
88
+ xmlListFront (xmlListPtr l);
89
+ XMLPUBFUN xmlLinkPtr
90
+ xmlListEnd (xmlListPtr l);
91
+ XMLPUBFUN int
92
+ xmlListSize (xmlListPtr l);
93
+
94
+ XMLPUBFUN void
95
+ xmlListPopFront (xmlListPtr l);
96
+ XMLPUBFUN void
97
+ xmlListPopBack (xmlListPtr l);
98
+ XMLPUBFUN int
99
+ xmlListPushFront (xmlListPtr l,
100
+ void *data);
101
+ XMLPUBFUN int
102
+ xmlListPushBack (xmlListPtr l,
103
+ void *data);
104
+
105
+ /* Advanced Operators */
106
+ XMLPUBFUN void
107
+ xmlListReverse (xmlListPtr l);
108
+ XMLPUBFUN void
109
+ xmlListSort (xmlListPtr l);
110
+ XMLPUBFUN void
111
+ xmlListWalk (xmlListPtr l,
112
+ xmlListWalker walker,
113
+ void *user);
114
+ XMLPUBFUN void
115
+ xmlListReverseWalk (xmlListPtr l,
116
+ xmlListWalker walker,
117
+ void *user);
118
+ XMLPUBFUN void
119
+ xmlListMerge (xmlListPtr l1,
120
+ xmlListPtr l2);
121
+ XMLPUBFUN xmlListPtr
122
+ xmlListDup (xmlListPtr old);
123
+ XMLPUBFUN int
124
+ xmlListCopy (xmlListPtr cur,
125
+ xmlListPtr old);
126
+ /* Link operators */
127
+ XMLPUBFUN void *
128
+ xmlLinkGetData (xmlLinkPtr lk);
129
+
130
+ /* xmlListUnique() */
131
+ /* xmlListSwap */
132
+
133
+ #ifdef __cplusplus
134
+ }
135
+ #endif
136
+
137
+ #endif /* __XML_LINK_INCLUDE__ */
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Summary: Removed legacy symbols for an outdated FTP client
3
+ *
4
+ * Copy: See Copyright for the status of this software.
5
+ *
6
+ * Author: Daniel Veillard
7
+ */
8
+
9
+ #ifndef __NANO_FTP_H__
10
+ #define __NANO_FTP_H__
11
+
12
+ #ifdef __GNUC__
13
+ #warning "libxml/nanoftp.h is deprecated"
14
+ #endif
15
+
16
+ #endif /* __NANO_FTP_H__ */
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Summary: minimal HTTP implementation
3
+ * Description: minimal HTTP implementation allowing to fetch resources
4
+ * like external subset.
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Daniel Veillard
9
+ */
10
+
11
+ #ifndef __NANO_HTTP_H__
12
+ #define __NANO_HTTP_H__
13
+
14
+ #include <libxml/xmlversion.h>
15
+
16
+ #ifdef LIBXML_HTTP_ENABLED
17
+
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+ XML_DEPRECATED
22
+ XMLPUBFUN void
23
+ xmlNanoHTTPInit (void);
24
+ XML_DEPRECATED
25
+ XMLPUBFUN void
26
+ xmlNanoHTTPCleanup (void);
27
+ XML_DEPRECATED
28
+ XMLPUBFUN void
29
+ xmlNanoHTTPScanProxy (const char *URL);
30
+ XML_DEPRECATED
31
+ XMLPUBFUN int
32
+ xmlNanoHTTPFetch (const char *URL,
33
+ const char *filename,
34
+ char **contentType);
35
+ XML_DEPRECATED
36
+ XMLPUBFUN void *
37
+ xmlNanoHTTPMethod (const char *URL,
38
+ const char *method,
39
+ const char *input,
40
+ char **contentType,
41
+ const char *headers,
42
+ int ilen);
43
+ XML_DEPRECATED
44
+ XMLPUBFUN void *
45
+ xmlNanoHTTPMethodRedir (const char *URL,
46
+ const char *method,
47
+ const char *input,
48
+ char **contentType,
49
+ char **redir,
50
+ const char *headers,
51
+ int ilen);
52
+ XML_DEPRECATED
53
+ XMLPUBFUN void *
54
+ xmlNanoHTTPOpen (const char *URL,
55
+ char **contentType);
56
+ XML_DEPRECATED
57
+ XMLPUBFUN void *
58
+ xmlNanoHTTPOpenRedir (const char *URL,
59
+ char **contentType,
60
+ char **redir);
61
+ XML_DEPRECATED
62
+ XMLPUBFUN int
63
+ xmlNanoHTTPReturnCode (void *ctx);
64
+ XML_DEPRECATED
65
+ XMLPUBFUN const char *
66
+ xmlNanoHTTPAuthHeader (void *ctx);
67
+ XML_DEPRECATED
68
+ XMLPUBFUN const char *
69
+ xmlNanoHTTPRedir (void *ctx);
70
+ XML_DEPRECATED
71
+ XMLPUBFUN int
72
+ xmlNanoHTTPContentLength( void * ctx );
73
+ XML_DEPRECATED
74
+ XMLPUBFUN const char *
75
+ xmlNanoHTTPEncoding (void *ctx);
76
+ XML_DEPRECATED
77
+ XMLPUBFUN const char *
78
+ xmlNanoHTTPMimeType (void *ctx);
79
+ XML_DEPRECATED
80
+ XMLPUBFUN int
81
+ xmlNanoHTTPRead (void *ctx,
82
+ void *dest,
83
+ int len);
84
+ #ifdef LIBXML_OUTPUT_ENABLED
85
+ XML_DEPRECATED
86
+ XMLPUBFUN int
87
+ xmlNanoHTTPSave (void *ctxt,
88
+ const char *filename);
89
+ #endif /* LIBXML_OUTPUT_ENABLED */
90
+ XML_DEPRECATED
91
+ XMLPUBFUN void
92
+ xmlNanoHTTPClose (void *ctx);
93
+ #ifdef __cplusplus
94
+ }
95
+ #endif
96
+
97
+ #endif /* LIBXML_HTTP_ENABLED */
98
+ #endif /* __NANO_HTTP_H__ */