@img/sharp-libvips-dev 1.0.1 → 1.0.3

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 (169) hide show
  1. package/README.md +1 -2
  2. package/include/aom/aom_decoder.h +1 -1
  3. package/include/aom/aom_encoder.h +7 -1
  4. package/include/aom/aom_image.h +24 -12
  5. package/include/aom/aom_integer.h +3 -3
  6. package/include/aom/aomcx.h +15 -0
  7. package/include/aom/aomdx.h +5 -2
  8. package/include/archive.h +7 -5
  9. package/include/archive_entry.h +5 -3
  10. package/include/cgif.h +3 -0
  11. package/include/expat.h +21 -10
  12. package/include/expat_config.h +11 -5
  13. package/include/ffi.h +12 -25
  14. package/include/freetype2/freetype/config/ftoption.h +2 -2
  15. package/include/fribidi/fribidi-config.h +2 -2
  16. package/include/fribidi/fribidi-unicode-version.h +3 -3
  17. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -2
  18. package/include/glib-2.0/gio/gappinfo.h +40 -25
  19. package/include/glib-2.0/gio/gapplication.h +6 -0
  20. package/include/glib-2.0/gio/gasyncresult.h +1 -1
  21. package/include/glib-2.0/gio/gconverter.h +5 -0
  22. package/include/glib-2.0/gio/gdbusintrospection.h +1 -1
  23. package/include/glib-2.0/gio/gfile.h +16 -0
  24. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  25. package/include/glib-2.0/gio/giotypes.h +0 -1
  26. package/include/glib-2.0/gio/gsettings.h +8 -0
  27. package/include/glib-2.0/gio/gvfs.h +2 -2
  28. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  29. package/include/glib-2.0/girepository/giarginfo.h +23 -6
  30. package/include/glib-2.0/girepository/gibaseinfo.h +44 -18
  31. package/include/glib-2.0/girepository/gicallableinfo.h +26 -16
  32. package/include/glib-2.0/girepository/gicallbackinfo.h +17 -2
  33. package/include/glib-2.0/girepository/giconstantinfo.h +19 -4
  34. package/include/glib-2.0/girepository/gienuminfo.h +20 -21
  35. package/include/glib-2.0/girepository/gifieldinfo.h +22 -7
  36. package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
  37. package/include/glib-2.0/girepository/gifunctioninfo.h +22 -7
  38. package/include/glib-2.0/girepository/giinterfaceinfo.h +33 -18
  39. package/include/glib-2.0/girepository/giobjectinfo.h +41 -26
  40. package/include/glib-2.0/girepository/gipropertyinfo.h +18 -3
  41. package/include/glib-2.0/girepository/giregisteredtypeinfo.h +22 -11
  42. package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
  43. package/include/glib-2.0/girepository/girepository.h +53 -62
  44. package/include/glib-2.0/girepository/girffi.h +8 -7
  45. package/include/glib-2.0/girepository/gisignalinfo.h +18 -3
  46. package/include/glib-2.0/girepository/gistructinfo.h +26 -11
  47. package/include/glib-2.0/girepository/gitypeinfo.h +29 -16
  48. package/include/glib-2.0/girepository/gitypelib.h +9 -13
  49. package/include/glib-2.0/girepository/gitypes.h +52 -104
  50. package/include/glib-2.0/girepository/giunioninfo.h +28 -12
  51. package/include/glib-2.0/girepository/giunresolvedinfo.h +17 -2
  52. package/include/glib-2.0/girepository/givalueinfo.h +65 -0
  53. package/include/glib-2.0/girepository/givfuncinfo.h +23 -8
  54. package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
  55. package/include/glib-2.0/glib/gbitlock.h +31 -0
  56. package/include/glib-2.0/glib/gbookmarkfile.h +1 -1
  57. package/include/glib-2.0/glib/giochannel.h +2 -2
  58. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  59. package/include/glib-2.0/glib/gmacros.h +12 -5
  60. package/include/glib-2.0/glib/gmain.h +93 -7
  61. package/include/glib-2.0/glib/gmessages.h +8 -0
  62. package/include/glib-2.0/glib/gqsort.h +8 -1
  63. package/include/glib-2.0/glib/gslice.h +2 -0
  64. package/include/glib-2.0/glib/gstrfuncs.h +24 -30
  65. package/include/glib-2.0/glib/gstrvbuilder.h +3 -0
  66. package/include/glib-2.0/glib/gthread.h +191 -3
  67. package/include/glib-2.0/glib/gunicode.h +1 -1
  68. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  69. package/include/glib-2.0/glib-unix.h +7 -1
  70. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  71. package/include/glib-2.0/gobject/genums.h +6 -6
  72. package/include/glib-2.0/gobject/glib-types.h +11 -0
  73. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  74. package/include/glib-2.0/gobject/gsignal.h +16 -6
  75. package/include/glib-2.0/gobject/gtype.h +6 -6
  76. package/include/harfbuzz/hb-buffer.h +6 -0
  77. package/include/harfbuzz/hb-common.h +6 -9
  78. package/include/harfbuzz/hb-cplusplus.hh +8 -11
  79. package/include/harfbuzz/hb-subset.h +17 -4
  80. package/include/harfbuzz/hb-version.h +3 -3
  81. package/include/hwy/abort.h +28 -0
  82. package/include/hwy/aligned_allocator.h +218 -6
  83. package/include/hwy/base.h +1935 -512
  84. package/include/hwy/cache_control.h +24 -6
  85. package/include/hwy/detect_compiler_arch.h +105 -10
  86. package/include/hwy/detect_targets.h +146 -37
  87. package/include/hwy/foreach_target.h +36 -1
  88. package/include/hwy/highway.h +222 -50
  89. package/include/hwy/ops/arm_neon-inl.h +2055 -894
  90. package/include/hwy/ops/arm_sve-inl.h +1476 -348
  91. package/include/hwy/ops/emu128-inl.h +711 -623
  92. package/include/hwy/ops/generic_ops-inl.h +4431 -2157
  93. package/include/hwy/ops/inside-inl.h +691 -0
  94. package/include/hwy/ops/ppc_vsx-inl.h +2186 -673
  95. package/include/hwy/ops/rvv-inl.h +1556 -536
  96. package/include/hwy/ops/scalar-inl.h +353 -233
  97. package/include/hwy/ops/set_macros-inl.h +171 -23
  98. package/include/hwy/ops/shared-inl.h +198 -56
  99. package/include/hwy/ops/wasm_128-inl.h +283 -244
  100. package/include/hwy/ops/x86_128-inl.h +3673 -1357
  101. package/include/hwy/ops/x86_256-inl.h +1737 -663
  102. package/include/hwy/ops/x86_512-inl.h +1697 -500
  103. package/include/hwy/per_target.h +4 -0
  104. package/include/hwy/profiler.h +648 -0
  105. package/include/hwy/robust_statistics.h +2 -2
  106. package/include/hwy/targets.h +40 -32
  107. package/include/hwy/timer-inl.h +3 -3
  108. package/include/hwy/timer.h +16 -1
  109. package/include/libheif/heif.h +170 -15
  110. package/include/libheif/heif_items.h +237 -0
  111. package/include/libheif/heif_properties.h +38 -2
  112. package/include/libheif/heif_regions.h +1 -1
  113. package/include/libheif/heif_version.h +2 -2
  114. package/include/libpng16/png.h +32 -29
  115. package/include/libpng16/pngconf.h +2 -2
  116. package/include/libpng16/pnglibconf.h +8 -3
  117. package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
  118. package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
  119. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
  120. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  121. package/include/librsvg-2.0/librsvg/rsvg.h +55 -176
  122. package/include/libxml2/libxml/HTMLparser.h +12 -19
  123. package/include/libxml2/libxml/c14n.h +1 -12
  124. package/include/libxml2/libxml/debugXML.h +1 -1
  125. package/include/libxml2/libxml/encoding.h +9 -0
  126. package/include/libxml2/libxml/entities.h +12 -1
  127. package/include/libxml2/libxml/hash.h +19 -0
  128. package/include/libxml2/libxml/list.h +2 -2
  129. package/include/libxml2/libxml/nanohttp.h +17 -0
  130. package/include/libxml2/libxml/parser.h +73 -58
  131. package/include/libxml2/libxml/parserInternals.h +9 -1
  132. package/include/libxml2/libxml/pattern.h +6 -0
  133. package/include/libxml2/libxml/tree.h +32 -12
  134. package/include/libxml2/libxml/uri.h +11 -0
  135. package/include/libxml2/libxml/valid.h +29 -2
  136. package/include/libxml2/libxml/xinclude.h +7 -0
  137. package/include/libxml2/libxml/xmlIO.h +21 -5
  138. package/include/libxml2/libxml/xmlerror.h +14 -0
  139. package/include/libxml2/libxml/xmlexports.h +111 -15
  140. package/include/libxml2/libxml/xmlmemory.h +8 -45
  141. package/include/libxml2/libxml/xmlreader.h +2 -0
  142. package/include/libxml2/libxml/xmlsave.h +5 -0
  143. package/include/libxml2/libxml/xmlunicode.h +165 -1
  144. package/include/libxml2/libxml/xmlversion.h +15 -179
  145. package/include/libxml2/libxml/xmlwriter.h +1 -0
  146. package/include/libxml2/libxml/xpath.h +4 -0
  147. package/include/pango-1.0/pango/pango-features.h +2 -2
  148. package/include/pango-1.0/pango/pango-fontmap.h +7 -0
  149. package/include/pango-1.0/pango/pango-item.h +4 -2
  150. package/include/pango-1.0/pango/pango-version-macros.h +25 -0
  151. package/include/pango-1.0/pango/pangofc-font.h +2 -1
  152. package/include/pixman-1/pixman-version.h +2 -2
  153. package/include/png.h +32 -29
  154. package/include/pngconf.h +2 -2
  155. package/include/pnglibconf.h +8 -3
  156. package/include/vips/connection.h +9 -3
  157. package/include/vips/util.h +1 -11
  158. package/include/vips/version.h +4 -4
  159. package/include/webp/decode.h +58 -56
  160. package/include/webp/demux.h +25 -21
  161. package/include/webp/encode.h +44 -39
  162. package/include/webp/mux.h +76 -15
  163. package/include/webp/mux_types.h +2 -1
  164. package/include/webp/sharpyuv/sharpyuv.h +77 -8
  165. package/include/webp/types.h +29 -8
  166. package/include/zconf.h +1 -1
  167. package/include/zlib.h +12 -12
  168. package/package.json +1 -1
  169. package/versions.json +18 -19
@@ -11,6 +11,7 @@
11
11
  #ifndef __XML_VALID_H__
12
12
  #define __XML_VALID_H__
13
13
 
14
+ /** DOC_DISABLE */
14
15
  #include <libxml/xmlversion.h>
15
16
  #include <libxml/xmlerror.h>
16
17
  #define XML_TREE_INTERNALS
@@ -19,6 +20,7 @@
19
20
  #include <libxml/list.h>
20
21
  #include <libxml/xmlautomata.h>
21
22
  #include <libxml/xmlregexp.h>
23
+ /** DOC_ENABLE */
22
24
 
23
25
  #ifdef __cplusplus
24
26
  extern "C" {
@@ -150,9 +152,11 @@ XMLPUBFUN xmlNotationTablePtr
150
152
  XMLPUBFUN void
151
153
  xmlFreeNotationTable (xmlNotationTablePtr table);
152
154
  #ifdef LIBXML_OUTPUT_ENABLED
155
+ XML_DEPRECATED
153
156
  XMLPUBFUN void
154
157
  xmlDumpNotationDecl (xmlBufferPtr buf,
155
158
  xmlNotationPtr nota);
159
+ /* XML_DEPRECATED, still used in lxml */
156
160
  XMLPUBFUN void
157
161
  xmlDumpNotationTable (xmlBufferPtr buf,
158
162
  xmlNotationTablePtr table);
@@ -184,13 +188,12 @@ XMLPUBFUN void
184
188
  xmlElementContentPtr content,
185
189
  int englob);
186
190
  #ifdef LIBXML_OUTPUT_ENABLED
187
- /* DEPRECATED */
191
+ XML_DEPRECATED
188
192
  XMLPUBFUN void
189
193
  xmlSprintfElementContent(char *buf,
190
194
  xmlElementContentPtr content,
191
195
  int englob);
192
196
  #endif /* LIBXML_OUTPUT_ENABLED */
193
- /* DEPRECATED */
194
197
 
195
198
  /* Element */
196
199
  XMLPUBFUN xmlElementPtr
@@ -206,9 +209,11 @@ XMLPUBFUN xmlElementTablePtr
206
209
  XMLPUBFUN void
207
210
  xmlFreeElementTable (xmlElementTablePtr table);
208
211
  #ifdef LIBXML_OUTPUT_ENABLED
212
+ XML_DEPRECATED
209
213
  XMLPUBFUN void
210
214
  xmlDumpElementTable (xmlBufferPtr buf,
211
215
  xmlElementTablePtr table);
216
+ XML_DEPRECATED
212
217
  XMLPUBFUN void
213
218
  xmlDumpElementDecl (xmlBufferPtr buf,
214
219
  xmlElementPtr elem);
@@ -242,15 +247,20 @@ XMLPUBFUN xmlAttributeTablePtr
242
247
  XMLPUBFUN void
243
248
  xmlFreeAttributeTable (xmlAttributeTablePtr table);
244
249
  #ifdef LIBXML_OUTPUT_ENABLED
250
+ XML_DEPRECATED
245
251
  XMLPUBFUN void
246
252
  xmlDumpAttributeTable (xmlBufferPtr buf,
247
253
  xmlAttributeTablePtr table);
254
+ XML_DEPRECATED
248
255
  XMLPUBFUN void
249
256
  xmlDumpAttributeDecl (xmlBufferPtr buf,
250
257
  xmlAttributePtr attr);
251
258
  #endif /* LIBXML_OUTPUT_ENABLED */
252
259
 
253
260
  /* IDs */
261
+ XMLPUBFUN int
262
+ xmlAddIDSafe (xmlAttrPtr attr,
263
+ const xmlChar *value);
254
264
  XMLPUBFUN xmlIDPtr
255
265
  xmlAddID (xmlValidCtxtPtr ctxt,
256
266
  xmlDocPtr doc,
@@ -303,31 +313,38 @@ XMLPUBFUN xmlValidCtxtPtr
303
313
  XMLPUBFUN void
304
314
  xmlFreeValidCtxt(xmlValidCtxtPtr);
305
315
 
316
+ XML_DEPRECATED
306
317
  XMLPUBFUN int
307
318
  xmlValidateRoot (xmlValidCtxtPtr ctxt,
308
319
  xmlDocPtr doc);
320
+ XML_DEPRECATED
309
321
  XMLPUBFUN int
310
322
  xmlValidateElementDecl (xmlValidCtxtPtr ctxt,
311
323
  xmlDocPtr doc,
312
324
  xmlElementPtr elem);
325
+ XML_DEPRECATED
313
326
  XMLPUBFUN xmlChar *
314
327
  xmlValidNormalizeAttributeValue(xmlDocPtr doc,
315
328
  xmlNodePtr elem,
316
329
  const xmlChar *name,
317
330
  const xmlChar *value);
331
+ XML_DEPRECATED
318
332
  XMLPUBFUN xmlChar *
319
333
  xmlValidCtxtNormalizeAttributeValue(xmlValidCtxtPtr ctxt,
320
334
  xmlDocPtr doc,
321
335
  xmlNodePtr elem,
322
336
  const xmlChar *name,
323
337
  const xmlChar *value);
338
+ XML_DEPRECATED
324
339
  XMLPUBFUN int
325
340
  xmlValidateAttributeDecl(xmlValidCtxtPtr ctxt,
326
341
  xmlDocPtr doc,
327
342
  xmlAttributePtr attr);
343
+ XML_DEPRECATED
328
344
  XMLPUBFUN int
329
345
  xmlValidateAttributeValue(xmlAttributeType type,
330
346
  const xmlChar *value);
347
+ XML_DEPRECATED
331
348
  XMLPUBFUN int
332
349
  xmlValidateNotationDecl (xmlValidCtxtPtr ctxt,
333
350
  xmlDocPtr doc,
@@ -336,6 +353,7 @@ XMLPUBFUN int
336
353
  xmlValidateDtd (xmlValidCtxtPtr ctxt,
337
354
  xmlDocPtr doc,
338
355
  xmlDtdPtr dtd);
356
+ XML_DEPRECATED
339
357
  XMLPUBFUN int
340
358
  xmlValidateDtdFinal (xmlValidCtxtPtr ctxt,
341
359
  xmlDocPtr doc);
@@ -346,16 +364,19 @@ XMLPUBFUN int
346
364
  xmlValidateElement (xmlValidCtxtPtr ctxt,
347
365
  xmlDocPtr doc,
348
366
  xmlNodePtr elem);
367
+ XML_DEPRECATED
349
368
  XMLPUBFUN int
350
369
  xmlValidateOneElement (xmlValidCtxtPtr ctxt,
351
370
  xmlDocPtr doc,
352
371
  xmlNodePtr elem);
372
+ XML_DEPRECATED
353
373
  XMLPUBFUN int
354
374
  xmlValidateOneAttribute (xmlValidCtxtPtr ctxt,
355
375
  xmlDocPtr doc,
356
376
  xmlNodePtr elem,
357
377
  xmlAttrPtr attr,
358
378
  const xmlChar *value);
379
+ XML_DEPRECATED
359
380
  XMLPUBFUN int
360
381
  xmlValidateOneNamespace (xmlValidCtxtPtr ctxt,
361
382
  xmlDocPtr doc,
@@ -363,12 +384,14 @@ XMLPUBFUN int
363
384
  const xmlChar *prefix,
364
385
  xmlNsPtr ns,
365
386
  const xmlChar *value);
387
+ XML_DEPRECATED
366
388
  XMLPUBFUN int
367
389
  xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt,
368
390
  xmlDocPtr doc);
369
391
  #endif /* LIBXML_VALID_ENABLED */
370
392
 
371
393
  #if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
394
+ XML_DEPRECATED
372
395
  XMLPUBFUN int
373
396
  xmlValidateNotationUse (xmlValidCtxtPtr ctxt,
374
397
  xmlDocPtr doc,
@@ -424,19 +447,23 @@ XMLPUBFUN int
424
447
  /*
425
448
  * Validation based on the regexp support
426
449
  */
450
+ XML_DEPRECATED
427
451
  XMLPUBFUN int
428
452
  xmlValidBuildContentModel(xmlValidCtxtPtr ctxt,
429
453
  xmlElementPtr elem);
430
454
 
455
+ XML_DEPRECATED
431
456
  XMLPUBFUN int
432
457
  xmlValidatePushElement (xmlValidCtxtPtr ctxt,
433
458
  xmlDocPtr doc,
434
459
  xmlNodePtr elem,
435
460
  const xmlChar *qname);
461
+ XML_DEPRECATED
436
462
  XMLPUBFUN int
437
463
  xmlValidatePushCData (xmlValidCtxtPtr ctxt,
438
464
  const xmlChar *data,
439
465
  int len);
466
+ XML_DEPRECATED
440
467
  XMLPUBFUN int
441
468
  xmlValidatePopElement (xmlValidCtxtPtr ctxt,
442
469
  xmlDocPtr doc,
@@ -14,6 +14,7 @@
14
14
  #define __XML_XINCLUDE_H__
15
15
 
16
16
  #include <libxml/xmlversion.h>
17
+ #include <libxml/xmlerror.h>
17
18
  #include <libxml/tree.h>
18
19
 
19
20
  #ifdef LIBXML_XINCLUDE_ENABLED
@@ -115,6 +116,12 @@ XMLPUBFUN xmlXIncludeCtxtPtr
115
116
  XMLPUBFUN int
116
117
  xmlXIncludeSetFlags (xmlXIncludeCtxtPtr ctxt,
117
118
  int flags);
119
+ XMLPUBFUN void
120
+ xmlXIncludeSetErrorHandler(xmlXIncludeCtxtPtr ctxt,
121
+ xmlStructuredErrorFunc handler,
122
+ void *data);
123
+ XMLPUBFUN int
124
+ xmlXIncludeGetLastError (xmlXIncludeCtxtPtr ctxt);
118
125
  XMLPUBFUN void
119
126
  xmlXIncludeFreeContext (xmlXIncludeCtxtPtr ctxt);
120
127
  XMLPUBFUN int
@@ -10,12 +10,14 @@
10
10
  #ifndef __XML_IO_H__
11
11
  #define __XML_IO_H__
12
12
 
13
+ /** DOC_DISABLE */
13
14
  #include <stdio.h>
14
15
  #include <libxml/xmlversion.h>
15
16
  #include <libxml/encoding.h>
16
17
  #define XML_TREE_INTERNALS
17
18
  #include <libxml/tree.h>
18
19
  #undef XML_TREE_INTERNALS
20
+ /** DOC_ENABLE */
19
21
 
20
22
  #ifdef __cplusplus
21
23
  extern "C" {
@@ -218,7 +220,6 @@ XMLPUBFUN xmlParserInputBufferPtr
218
220
  XMLPUBFUN xmlParserInputBufferPtr
219
221
  xmlParserInputBufferCreateMem (const char *mem, int size,
220
222
  xmlCharEncoding enc);
221
- XML_DEPRECATED
222
223
  XMLPUBFUN xmlParserInputBufferPtr
223
224
  xmlParserInputBufferCreateStatic (const char *mem, int size,
224
225
  xmlCharEncoding enc);
@@ -324,12 +325,14 @@ xmlOutputBufferPtr
324
325
 
325
326
  #ifdef LIBXML_HTTP_ENABLED
326
327
  /* This function only exists if HTTP support built into the library */
328
+ XML_DEPRECATED
327
329
  XMLPUBFUN void
328
330
  xmlRegisterHTTPPostCallbacks (void );
329
331
  #endif /* LIBXML_HTTP_ENABLED */
330
332
 
331
333
  #endif /* LIBXML_OUTPUT_ENABLED */
332
334
 
335
+ XML_DEPRECATED
333
336
  XMLPUBFUN xmlParserInputPtr
334
337
  xmlCheckHTTPInput (xmlParserCtxtPtr ctxt,
335
338
  xmlParserInputPtr ret);
@@ -342,26 +345,28 @@ XMLPUBFUN xmlParserInputPtr
342
345
  const char *ID,
343
346
  xmlParserCtxtPtr ctxt);
344
347
 
345
- /*
346
- * xmlNormalizeWindowsPath is obsolete, don't use it.
347
- * Check xmlCanonicPath in uri.h for a better alternative.
348
- */
348
+ XML_DEPRECATED
349
349
  XMLPUBFUN xmlChar *
350
350
  xmlNormalizeWindowsPath (const xmlChar *path);
351
351
 
352
+ XML_DEPRECATED
352
353
  XMLPUBFUN int
353
354
  xmlCheckFilename (const char *path);
354
355
  /**
355
356
  * Default 'file://' protocol callbacks
356
357
  */
358
+ XML_DEPRECATED
357
359
  XMLPUBFUN int
358
360
  xmlFileMatch (const char *filename);
361
+ XML_DEPRECATED
359
362
  XMLPUBFUN void *
360
363
  xmlFileOpen (const char *filename);
364
+ XML_DEPRECATED
361
365
  XMLPUBFUN int
362
366
  xmlFileRead (void * context,
363
367
  char * buffer,
364
368
  int len);
369
+ XML_DEPRECATED
365
370
  XMLPUBFUN int
366
371
  xmlFileClose (void * context);
367
372
 
@@ -369,19 +374,24 @@ XMLPUBFUN int
369
374
  * Default 'http://' protocol callbacks
370
375
  */
371
376
  #ifdef LIBXML_HTTP_ENABLED
377
+ XML_DEPRECATED
372
378
  XMLPUBFUN int
373
379
  xmlIOHTTPMatch (const char *filename);
380
+ XML_DEPRECATED
374
381
  XMLPUBFUN void *
375
382
  xmlIOHTTPOpen (const char *filename);
376
383
  #ifdef LIBXML_OUTPUT_ENABLED
384
+ XML_DEPRECATED
377
385
  XMLPUBFUN void *
378
386
  xmlIOHTTPOpenW (const char * post_uri,
379
387
  int compression );
380
388
  #endif /* LIBXML_OUTPUT_ENABLED */
389
+ XML_DEPRECATED
381
390
  XMLPUBFUN int
382
391
  xmlIOHTTPRead (void * context,
383
392
  char * buffer,
384
393
  int len);
394
+ XML_DEPRECATED
385
395
  XMLPUBFUN int
386
396
  xmlIOHTTPClose (void * context);
387
397
  #endif /* LIBXML_HTTP_ENABLED */
@@ -390,14 +400,18 @@ XMLPUBFUN int
390
400
  * Default 'ftp://' protocol callbacks
391
401
  */
392
402
  #if defined(LIBXML_FTP_ENABLED)
403
+ XML_DEPRECATED
393
404
  XMLPUBFUN int
394
405
  xmlIOFTPMatch (const char *filename);
406
+ XML_DEPRECATED
395
407
  XMLPUBFUN void *
396
408
  xmlIOFTPOpen (const char *filename);
409
+ XML_DEPRECATED
397
410
  XMLPUBFUN int
398
411
  xmlIOFTPRead (void * context,
399
412
  char * buffer,
400
413
  int len);
414
+ XML_DEPRECATED
401
415
  XMLPUBFUN int
402
416
  xmlIOFTPClose (void * context);
403
417
  #endif /* defined(LIBXML_FTP_ENABLED) */
@@ -408,9 +422,11 @@ XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
408
422
  XMLPUBFUN xmlOutputBufferCreateFilenameFunc
409
423
  xmlOutputBufferCreateFilenameDefault(
410
424
  xmlOutputBufferCreateFilenameFunc func);
425
+ XML_DEPRECATED
411
426
  XMLPUBFUN xmlOutputBufferCreateFilenameFunc
412
427
  xmlThrDefOutputBufferCreateFilenameDefault(
413
428
  xmlOutputBufferCreateFilenameFunc func);
429
+ XML_DEPRECATED
414
430
  XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
415
431
  xmlThrDefParserInputBufferCreateFilenameDefault(
416
432
  xmlParserInputBufferCreateFilenameFunc func);
@@ -211,6 +211,11 @@ typedef enum {
211
211
  XML_ERR_USER_STOP, /* 111 */
212
212
  XML_ERR_COMMENT_ABRUPTLY_ENDED, /* 112 */
213
213
  XML_WAR_ENCODING_MISMATCH, /* 113 */
214
+ XML_ERR_RESOURCE_LIMIT, /* 114 */
215
+ XML_ERR_ARGUMENT, /* 115 */
216
+ XML_ERR_SYSTEM, /* 116 */
217
+ XML_ERR_REDECL_PREDEF_ENTITY, /* 117 */
218
+ XML_ERR_INT_SUBSET_NOT_FINISHED, /* 118 */
214
219
  XML_NS_ERR_XML_NAMESPACE = 200,
215
220
  XML_NS_ERR_UNDEFINED_NAMESPACE, /* 201 */
216
221
  XML_NS_ERR_QNAME, /* 202 */
@@ -473,6 +478,7 @@ typedef enum {
473
478
  XML_IO_EADDRINUSE, /* 1554 */
474
479
  XML_IO_EALREADY, /* 1555 */
475
480
  XML_IO_EAFNOSUPPORT, /* 1556 */
481
+ XML_IO_UNSUPPORTED_PROTOCOL, /* 1557 */
476
482
  XML_XINCLUDE_RECURSION=1600,
477
483
  XML_XINCLUDE_PARSE_VALUE, /* 1601 */
478
484
  XML_XINCLUDE_ENTITY_DEF_MISMATCH, /* 1602 */
@@ -886,6 +892,7 @@ XML_GLOBALS_ERROR
886
892
  XMLPUBFUN void
887
893
  xmlSetGenericErrorFunc (void *ctx,
888
894
  xmlGenericErrorFunc handler);
895
+ XML_DEPRECATED
889
896
  XMLPUBFUN void
890
897
  xmlThrDefSetGenericErrorFunc(void *ctx,
891
898
  xmlGenericErrorFunc handler);
@@ -896,6 +903,7 @@ XMLPUBFUN void
896
903
  XMLPUBFUN void
897
904
  xmlSetStructuredErrorFunc (void *ctx,
898
905
  xmlStructuredErrorFunc handler);
906
+ XML_DEPRECATED
899
907
  XMLPUBFUN void
900
908
  xmlThrDefSetStructuredErrorFunc(void *ctx,
901
909
  xmlStructuredErrorFunc handler);
@@ -919,11 +927,17 @@ XMLPUBFUN void
919
927
  xmlParserValidityWarning (void *ctx,
920
928
  const char *msg,
921
929
  ...) LIBXML_ATTR_FORMAT(2,3);
930
+ /** DOC_DISABLE */
922
931
  struct _xmlParserInput;
932
+ /** DOC_ENABLE */
923
933
  XMLPUBFUN void
924
934
  xmlParserPrintFileInfo (struct _xmlParserInput *input);
925
935
  XMLPUBFUN void
926
936
  xmlParserPrintFileContext (struct _xmlParserInput *input);
937
+ XMLPUBFUN void
938
+ xmlFormatError (const xmlError *err,
939
+ xmlGenericErrorFunc channel,
940
+ void *data);
927
941
 
928
942
  /*
929
943
  * Extended error information routines
@@ -9,6 +9,11 @@
9
9
  #define __XML_EXPORTS_H__
10
10
 
11
11
  /** DOC_DISABLE */
12
+
13
+ /*
14
+ * Symbol visibility
15
+ */
16
+
12
17
  #if defined(_WIN32) || defined(__CYGWIN__)
13
18
  #ifdef LIBXML_STATIC
14
19
  #define XMLPUBLIC
@@ -20,30 +25,121 @@
20
25
  #else /* not Windows */
21
26
  #define XMLPUBLIC
22
27
  #endif /* platform switch */
23
- /** DOC_ENABLE */
24
28
 
25
- /*
26
- * XMLPUBFUN:
27
- *
28
- * Macro which declares an exportable function
29
- */
30
29
  #define XMLPUBFUN XMLPUBLIC
31
30
 
32
- /**
33
- * XMLPUBVAR:
34
- *
35
- * Macro which declares an exportable variable
36
- */
37
31
  #define XMLPUBVAR XMLPUBLIC extern
38
32
 
39
- /** DOC_DISABLE */
40
33
  /* Compatibility */
41
34
  #define XMLCALL
42
35
  #define XMLCDECL
43
- #if !defined(LIBXML_DLL_IMPORT)
44
- #define LIBXML_DLL_IMPORT XMLPUBVAR
36
+ #ifndef LIBXML_DLL_IMPORT
37
+ #define LIBXML_DLL_IMPORT XMLPUBVAR
38
+ #endif
39
+
40
+ /*
41
+ * Attributes
42
+ */
43
+
44
+ #ifndef ATTRIBUTE_UNUSED
45
+ #if __GNUC__ * 100 + __GNUC_MINOR__ >= 207 || defined(__clang__)
46
+ #define ATTRIBUTE_UNUSED __attribute__((unused))
47
+ #else
48
+ #define ATTRIBUTE_UNUSED
49
+ #endif
50
+ #endif
51
+
52
+ #if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)
53
+ #define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
54
+ #else
55
+ #define LIBXML_ATTR_ALLOC_SIZE(x)
56
+ #endif
57
+
58
+ #if __GNUC__ * 100 + __GNUC_MINOR__ >= 303
59
+ #define LIBXML_ATTR_FORMAT(fmt,args) \
60
+ __attribute__((__format__(__printf__,fmt,args)))
61
+ #else
62
+ #define LIBXML_ATTR_FORMAT(fmt,args)
63
+ #endif
64
+
65
+ #ifndef XML_DEPRECATED
66
+ #if defined(IN_LIBXML)
67
+ #define XML_DEPRECATED
68
+ #elif __GNUC__ * 100 + __GNUC_MINOR__ >= 301
69
+ #define XML_DEPRECATED __attribute__((deprecated))
70
+ #elif _MSC_VER >= 1400
71
+ /* Available since Visual Studio 2005 */
72
+ #define XML_DEPRECATED __declspec(deprecated)
73
+ #else
74
+ #define XML_DEPRECATED
75
+ #endif
76
+ #endif
77
+
78
+ /*
79
+ * Warnings pragmas, should be moved from public headers
80
+ */
81
+
82
+ #if defined(__LCC__)
83
+
84
+ #define XML_IGNORE_FPTR_CAST_WARNINGS
85
+ #define XML_POP_WARNINGS \
86
+ _Pragma("diag_default 1215")
87
+
88
+ #elif defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
89
+
90
+ #if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800)
91
+ #define XML_IGNORE_FPTR_CAST_WARNINGS \
92
+ _Pragma("GCC diagnostic push") \
93
+ _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
94
+ _Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
95
+ #else
96
+ #define XML_IGNORE_FPTR_CAST_WARNINGS \
97
+ _Pragma("GCC diagnostic push") \
98
+ _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
99
+ #endif
100
+ #define XML_POP_WARNINGS \
101
+ _Pragma("GCC diagnostic pop")
102
+
103
+ #elif _MSC_VER >= 1400
104
+
105
+ #define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
106
+ #define XML_POP_WARNINGS __pragma(warning(pop))
107
+
108
+ #else
109
+
110
+ #define XML_IGNORE_FPTR_CAST_WARNINGS
111
+ #define XML_POP_WARNINGS
112
+
113
+ #endif
114
+
115
+ /*
116
+ * Accessors for globals
117
+ */
118
+
119
+ #define XML_NO_ATTR
120
+
121
+ #ifdef LIBXML_THREAD_ENABLED
122
+ #define XML_DECLARE_GLOBAL(name, type, attrs) \
123
+ attrs XMLPUBFUN type *__##name(void);
124
+ #define XML_GLOBAL_MACRO(name) (*__##name())
125
+ #else
126
+ #define XML_DECLARE_GLOBAL(name, type, attrs) \
127
+ attrs XMLPUBVAR type name;
128
+ #endif
129
+
130
+ /*
131
+ * Originally declared in xmlversion.h which is generated
132
+ */
133
+
134
+ #ifdef __cplusplus
135
+ extern "C" {
136
+ #endif
137
+
138
+ XMLPUBFUN void xmlCheckVersion(int version);
139
+
140
+ #ifdef __cplusplus
141
+ }
45
142
  #endif
46
- /** DOC_ENABLE */
47
143
 
48
144
  #endif /* __XML_EXPORTS_H__ */
49
145
 
@@ -147,12 +147,16 @@ XMLPUBFUN int
147
147
  xmlMemUsed (void);
148
148
  XMLPUBFUN int
149
149
  xmlMemBlocks (void);
150
+ XML_DEPRECATED
150
151
  XMLPUBFUN void
151
152
  xmlMemDisplay (FILE *fp);
153
+ XML_DEPRECATED
152
154
  XMLPUBFUN void
153
155
  xmlMemDisplayLast(FILE *fp, long nbBytes);
156
+ XML_DEPRECATED
154
157
  XMLPUBFUN void
155
158
  xmlMemShow (FILE *fp, int nr);
159
+ XML_DEPRECATED
156
160
  XMLPUBFUN void
157
161
  xmlMemoryDump (void);
158
162
  XMLPUBFUN void *
@@ -163,60 +167,19 @@ XMLPUBFUN void
163
167
  xmlMemFree (void *ptr);
164
168
  XMLPUBFUN char *
165
169
  xmlMemoryStrdup (const char *str);
170
+ XML_DEPRECATED
166
171
  XMLPUBFUN void *
167
172
  xmlMallocLoc (size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1);
173
+ XML_DEPRECATED
168
174
  XMLPUBFUN void *
169
175
  xmlReallocLoc (void *ptr, size_t size, const char *file, int line);
176
+ XML_DEPRECATED
170
177
  XMLPUBFUN void *
171
178
  xmlMallocAtomicLoc (size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1);
179
+ XML_DEPRECATED
172
180
  XMLPUBFUN char *
173
181
  xmlMemStrdupLoc (const char *str, const char *file, int line);
174
182
 
175
-
176
- /** DOC_DISABLE */
177
- #ifdef DEBUG_MEMORY_LOCATION
178
- /**
179
- * xmlMalloc:
180
- * @size: number of bytes to allocate
181
- *
182
- * Wrapper for the malloc() function used in the XML library.
183
- *
184
- * Returns the pointer to the allocated area or NULL in case of error.
185
- */
186
- #define xmlMalloc(size) xmlMallocLoc((size), __FILE__, __LINE__)
187
- /**
188
- * xmlMallocAtomic:
189
- * @size: number of bytes to allocate
190
- *
191
- * Wrapper for the malloc() function used in the XML library for allocation
192
- * of block not containing pointers to other areas.
193
- *
194
- * Returns the pointer to the allocated area or NULL in case of error.
195
- */
196
- #define xmlMallocAtomic(size) xmlMallocAtomicLoc((size), __FILE__, __LINE__)
197
- /**
198
- * xmlRealloc:
199
- * @ptr: pointer to the existing allocated area
200
- * @size: number of bytes to allocate
201
- *
202
- * Wrapper for the realloc() function used in the XML library.
203
- *
204
- * Returns the pointer to the allocated area or NULL in case of error.
205
- */
206
- #define xmlRealloc(ptr, size) xmlReallocLoc((ptr), (size), __FILE__, __LINE__)
207
- /**
208
- * xmlMemStrdup:
209
- * @str: pointer to the existing string
210
- *
211
- * Wrapper for the strdup() function, xmlStrdup() is usually preferred.
212
- *
213
- * Returns the pointer to the allocated area or NULL in case of error.
214
- */
215
- #define xmlMemStrdup(str) xmlMemStrdupLoc((str), __FILE__, __LINE__)
216
-
217
- #endif /* DEBUG_MEMORY_LOCATION */
218
- /** DOC_ENABLE */
219
-
220
183
  #ifdef __cplusplus
221
184
  }
222
185
  #endif /* __cplusplus */
@@ -127,6 +127,8 @@ XMLPUBFUN int
127
127
  XMLPUBFUN void
128
128
  xmlTextReaderSetMaxAmplification(xmlTextReaderPtr reader,
129
129
  unsigned maxAmpl);
130
+ XMLPUBFUN const xmlError *
131
+ xmlTextReaderGetLastError(xmlTextReaderPtr reader);
130
132
 
131
133
  /*
132
134
  * Iterators
@@ -73,6 +73,8 @@ XMLPUBFUN int
73
73
  xmlSaveFlush (xmlSaveCtxtPtr ctxt);
74
74
  XMLPUBFUN int
75
75
  xmlSaveClose (xmlSaveCtxtPtr ctxt);
76
+ XMLPUBFUN int
77
+ xmlSaveFinish (xmlSaveCtxtPtr ctxt);
76
78
  XMLPUBFUN int
77
79
  xmlSaveSetEscape (xmlSaveCtxtPtr ctxt,
78
80
  xmlCharEncodingOutputFunc escape);
@@ -80,10 +82,13 @@ XMLPUBFUN int
80
82
  xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt,
81
83
  xmlCharEncodingOutputFunc escape);
82
84
 
85
+ XML_DEPRECATED
83
86
  XMLPUBFUN int
84
87
  xmlThrDefIndentTreeOutput(int v);
88
+ XML_DEPRECATED
85
89
  XMLPUBFUN const char *
86
90
  xmlThrDefTreeIndentString(const char * v);
91
+ XML_DEPRECATED
87
92
  XMLPUBFUN int
88
93
  xmlThrDefSaveNoEmptyTags(int v);
89
94