@revizly/sharp-libvips-dev 1.0.4 → 1.0.6
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.
- package/README.md +1 -2
- package/include/aom/aom_decoder.h +1 -1
- package/include/aom/aom_encoder.h +7 -1
- package/include/aom/aom_image.h +24 -12
- package/include/aom/aom_integer.h +3 -3
- package/include/aom/aomcx.h +15 -0
- package/include/aom/aomdx.h +5 -2
- package/include/archive.h +7 -5
- package/include/archive_entry.h +5 -3
- package/include/cgif.h +3 -0
- package/include/fribidi/fribidi-config.h +2 -2
- package/include/fribidi/fribidi-unicode-version.h +3 -3
- package/include/harfbuzz/hb-buffer.h +6 -0
- package/include/harfbuzz/hb-common.h +5 -2
- package/include/harfbuzz/hb-cplusplus.hh +0 -3
- package/include/harfbuzz/hb-subset.h +5 -6
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/hwy/abort.h +28 -0
- package/include/hwy/aligned_allocator.h +48 -1
- package/include/hwy/base.h +235 -34
- package/include/hwy/detect_compiler_arch.h +84 -10
- package/include/hwy/detect_targets.h +95 -29
- package/include/hwy/foreach_target.h +12 -1
- package/include/hwy/highway.h +205 -50
- package/include/hwy/ops/arm_neon-inl.h +841 -99
- package/include/hwy/ops/arm_sve-inl.h +413 -141
- package/include/hwy/ops/emu128-inl.h +373 -360
- package/include/hwy/ops/generic_ops-inl.h +804 -401
- package/include/hwy/ops/inside-inl.h +691 -0
- package/include/hwy/ops/ppc_vsx-inl.h +456 -166
- package/include/hwy/ops/rvv-inl.h +537 -249
- package/include/hwy/ops/scalar-inl.h +169 -79
- package/include/hwy/ops/set_macros-inl.h +106 -18
- package/include/hwy/ops/shared-inl.h +23 -0
- package/include/hwy/ops/wasm_128-inl.h +130 -108
- package/include/hwy/ops/x86_128-inl.h +1892 -577
- package/include/hwy/ops/x86_256-inl.h +625 -184
- package/include/hwy/ops/x86_512-inl.h +733 -131
- package/include/hwy/targets.h +22 -21
- package/include/hwy/timer-inl.h +3 -3
- package/include/hwy/timer.h +5 -1
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
- package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- package/include/librsvg-2.0/librsvg/rsvg.h +26 -176
- package/include/libxml2/libxml/HTMLparser.h +12 -19
- package/include/libxml2/libxml/c14n.h +1 -12
- package/include/libxml2/libxml/debugXML.h +1 -1
- package/include/libxml2/libxml/encoding.h +9 -0
- package/include/libxml2/libxml/entities.h +12 -1
- package/include/libxml2/libxml/hash.h +19 -0
- package/include/libxml2/libxml/list.h +2 -2
- package/include/libxml2/libxml/nanohttp.h +17 -0
- package/include/libxml2/libxml/parser.h +60 -54
- package/include/libxml2/libxml/parserInternals.h +9 -1
- package/include/libxml2/libxml/pattern.h +6 -0
- package/include/libxml2/libxml/tree.h +32 -12
- package/include/libxml2/libxml/uri.h +11 -0
- package/include/libxml2/libxml/valid.h +29 -2
- package/include/libxml2/libxml/xinclude.h +7 -0
- package/include/libxml2/libxml/xmlIO.h +21 -4
- package/include/libxml2/libxml/xmlerror.h +14 -0
- package/include/libxml2/libxml/xmlexports.h +111 -15
- package/include/libxml2/libxml/xmlmemory.h +8 -45
- package/include/libxml2/libxml/xmlreader.h +2 -0
- package/include/libxml2/libxml/xmlsave.h +5 -0
- package/include/libxml2/libxml/xmlunicode.h +165 -1
- package/include/libxml2/libxml/xmlversion.h +6 -170
- package/include/libxml2/libxml/xmlwriter.h +1 -0
- package/include/libxml2/libxml/xpath.h +4 -0
- package/include/pango-1.0/pango/pango-features.h +3 -3
- package/include/pango-1.0/pango/pango-item.h +4 -2
- package/include/pango-1.0/pango/pango-version-macros.h +25 -0
- package/include/pango-1.0/pango/pangofc-font.h +2 -1
- package/include/pnglibconf.h +1 -1
- package/include/webp/decode.h +58 -56
- package/include/webp/demux.h +25 -21
- package/include/webp/encode.h +44 -39
- package/include/webp/mux.h +76 -15
- package/include/webp/mux_types.h +2 -1
- package/include/webp/sharpyuv/sharpyuv.h +77 -8
- package/include/webp/types.h +29 -8
- package/include/zconf.h +1 -1
- package/include/zlib.h +14 -14
- package/package.json +1 -1
- package/versions.json +12 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
2
2
|
/* vim: set sw=4 sts=4 expandtab: */
|
|
3
3
|
/*
|
|
4
|
-
rsvg.h: SAX-based renderer for SVG files
|
|
4
|
+
rsvg.h: SAX-based renderer for SVG files using Cairo or GDK-Pixbuf.
|
|
5
5
|
|
|
6
6
|
Copyright (C) 2000 Eazel, Inc.
|
|
7
7
|
|
|
@@ -30,9 +30,6 @@
|
|
|
30
30
|
#include <glib-object.h>
|
|
31
31
|
#include <gio/gio.h>
|
|
32
32
|
|
|
33
|
-
#include <cairo.h>
|
|
34
|
-
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
35
|
-
|
|
36
33
|
G_BEGIN_DECLS
|
|
37
34
|
|
|
38
35
|
#ifndef __GTK_DOC_IGNORE__
|
|
@@ -207,6 +204,10 @@ GType rsvg_error_get_type (void);
|
|
|
207
204
|
* [method@Rsvg.Handle.set_dpi_x_y] on an [class@Rsvg.Handle] to set the DPI before rendering
|
|
208
205
|
* it.
|
|
209
206
|
*
|
|
207
|
+
* For historical reasons, the default DPI is 90. Current CSS assumes a default DPI of 96, so
|
|
208
|
+
* you may want to set the DPI of a [class@Rsvg.Handle] immediately after creating it with
|
|
209
|
+
* [method@Rsvg.Handle.set_dpi].
|
|
210
|
+
*
|
|
210
211
|
* # Rendering
|
|
211
212
|
*
|
|
212
213
|
* The preferred way to render a whole SVG document is to use
|
|
@@ -255,12 +256,18 @@ GType rsvg_error_get_type (void);
|
|
|
255
256
|
* RsvgHandle:dpi-x:
|
|
256
257
|
*
|
|
257
258
|
* Horizontal resolution in dots per inch.
|
|
259
|
+
*
|
|
260
|
+
* The default is 90. Note that current CSS assumes a default of 96,
|
|
261
|
+
* so you may want to set it to `96.0` before rendering the handle.
|
|
258
262
|
*/
|
|
259
263
|
|
|
260
264
|
/**
|
|
261
265
|
* RsvgHandle:dpi-y:
|
|
262
266
|
*
|
|
263
267
|
* Horizontal resolution in dots per inch.
|
|
268
|
+
*
|
|
269
|
+
* The default is 90. Note that current CSS assumes a default of 96,
|
|
270
|
+
* so you may want to set it to `96.0` before rendering the handle.
|
|
264
271
|
*/
|
|
265
272
|
|
|
266
273
|
/**
|
|
@@ -606,60 +613,6 @@ gboolean rsvg_handle_write (RsvgHandle *handle,
|
|
|
606
613
|
RSVG_DEPRECATED_FOR(rsvg_handle_read_stream_sync)
|
|
607
614
|
gboolean rsvg_handle_close (RsvgHandle *handle, GError **error);
|
|
608
615
|
|
|
609
|
-
/**
|
|
610
|
-
* rsvg_handle_get_pixbuf:
|
|
611
|
-
* @handle: An [class@Rsvg.Handle]
|
|
612
|
-
*
|
|
613
|
-
* Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
|
|
614
|
-
* the caller of this function must assume that ref.
|
|
615
|
-
*
|
|
616
|
-
* API ordering: This function must be called on a fully-loaded @handle. See
|
|
617
|
-
* the section "[API ordering](class.Handle.html#api-ordering)" for details.
|
|
618
|
-
*
|
|
619
|
-
* This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
|
|
620
|
-
* "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
|
|
621
|
-
* beforehand.
|
|
622
|
-
*
|
|
623
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
624
|
-
* during rendering.
|
|
625
|
-
**/
|
|
626
|
-
RSVG_API
|
|
627
|
-
GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* rsvg_handle_get_pixbuf_sub:
|
|
631
|
-
* @handle: An #RsvgHandle
|
|
632
|
-
* @id: (nullable): An element's id within the SVG, starting with "#" (a single
|
|
633
|
-
* hash character), for example, `#layer1`. This notation corresponds to a
|
|
634
|
-
* URL's fragment ID. Alternatively, pass `NULL` to use the whole SVG.
|
|
635
|
-
*
|
|
636
|
-
* Creates a `GdkPixbuf` the same size as the entire SVG loaded into @handle, but
|
|
637
|
-
* only renders the sub-element that has the specified @id (and all its
|
|
638
|
-
* sub-sub-elements recursively). If @id is `NULL`, this function renders the
|
|
639
|
-
* whole SVG.
|
|
640
|
-
*
|
|
641
|
-
* This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
|
|
642
|
-
* "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
|
|
643
|
-
* beforehand.
|
|
644
|
-
*
|
|
645
|
-
* If you need to render an image which is only big enough to fit a particular
|
|
646
|
-
* sub-element of the SVG, consider using [method@Rsvg.Handle.render_element].
|
|
647
|
-
*
|
|
648
|
-
* Element IDs should look like an URL fragment identifier; for example, pass
|
|
649
|
-
* `#foo` (hash `foo`) to get the geometry of the element that
|
|
650
|
-
* has an `id="foo"` attribute.
|
|
651
|
-
*
|
|
652
|
-
* API ordering: This function must be called on a fully-loaded @handle. See
|
|
653
|
-
* the section "[API ordering](class.Handle.html#api-ordering)" for details.
|
|
654
|
-
*
|
|
655
|
-
* Returns: (transfer full) (nullable): a pixbuf, or `NULL` if an error occurs
|
|
656
|
-
* during rendering.
|
|
657
|
-
*
|
|
658
|
-
* Since: 2.14
|
|
659
|
-
**/
|
|
660
|
-
RSVG_API
|
|
661
|
-
GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
|
|
662
|
-
|
|
663
616
|
/**
|
|
664
617
|
* rsvg_handle_get_base_uri: (attributes org.gtk.Method.get_property=base-uri)
|
|
665
618
|
* @handle: A [class@Rsvg.Handle]
|
|
@@ -798,9 +751,14 @@ gboolean rsvg_handle_has_sub (RsvgHandle *handle, const char *id);
|
|
|
798
751
|
* @RSVG_UNIT_MM: millimeters
|
|
799
752
|
* @RSVG_UNIT_PT: points, or 1/72 inch
|
|
800
753
|
* @RSVG_UNIT_PC: picas, or 1/6 inch (12 points)
|
|
754
|
+
* @RSVG_UNIT_CH: advance measure of a '0' character (depends on the text orientation)
|
|
801
755
|
*
|
|
802
756
|
* Units for the `RsvgLength` struct. These have the same meaning as [CSS length
|
|
803
757
|
* units](https://www.w3.org/TR/CSS21/syndata.html#length-units).
|
|
758
|
+
*
|
|
759
|
+
* If you test for the values of this enum, please note that librsvg may add other units in the future
|
|
760
|
+
* as its support for CSS improves. Please make your code handle unknown units gracefully (e.g. with
|
|
761
|
+
* a `default` case in a `switch()` statement).
|
|
804
762
|
*/
|
|
805
763
|
typedef enum {
|
|
806
764
|
RSVG_UNIT_PERCENT,
|
|
@@ -811,7 +769,8 @@ typedef enum {
|
|
|
811
769
|
RSVG_UNIT_CM,
|
|
812
770
|
RSVG_UNIT_MM,
|
|
813
771
|
RSVG_UNIT_PT,
|
|
814
|
-
RSVG_UNIT_PC
|
|
772
|
+
RSVG_UNIT_PC,
|
|
773
|
+
RSVG_UNIT_CH,
|
|
815
774
|
} RsvgUnit;
|
|
816
775
|
|
|
817
776
|
/**
|
|
@@ -919,6 +878,10 @@ void rsvg_handle_get_intrinsic_dimensions (RsvgHandle *handle,
|
|
|
919
878
|
* uses the computed value of the `font-size` property for the toplevel
|
|
920
879
|
* `<svg>` element. In those cases, this function returns `TRUE`.
|
|
921
880
|
*
|
|
881
|
+
* For historical reasons, the default DPI is 90. Current CSS assumes a default DPI of 96, so
|
|
882
|
+
* you may want to set the DPI of a [class@Rsvg.Handle] immediately after creating it with
|
|
883
|
+
* [method@Rsvg.Handle.set_dpi].
|
|
884
|
+
*
|
|
922
885
|
* This function is not able to extract the size in pixels directly from the intrinsic
|
|
923
886
|
* dimensions of the SVG document if the `width` or
|
|
924
887
|
* `height` are in percentage units (or if they do not exist, in which
|
|
@@ -1284,123 +1247,6 @@ void rsvg_handle_set_size_callback (RsvgHandle *handle,
|
|
|
1284
1247
|
gpointer user_data,
|
|
1285
1248
|
GDestroyNotify user_data_destroy);
|
|
1286
1249
|
|
|
1287
|
-
/* GdkPixbuf convenience API */
|
|
1288
|
-
|
|
1289
|
-
/**
|
|
1290
|
-
* rsvg-pixbuf:
|
|
1291
|
-
*
|
|
1292
|
-
* Years ago, GNOME and GTK used the gdk-pixbuf library as a general mechanism to load
|
|
1293
|
-
* raster images into memory (PNG, JPEG, etc.) and pass them around. The general idiom
|
|
1294
|
-
* was, "load this image file and give me a `GdkPixbuf` object", which is basically a pixel
|
|
1295
|
-
* buffer. Librsvg supports this kind of interface to load and render SVG documents, but
|
|
1296
|
-
* it is deprecated in favor of rendering to Cairo contexts.
|
|
1297
|
-
*/
|
|
1298
|
-
|
|
1299
|
-
/**
|
|
1300
|
-
* rsvg_pixbuf_from_file:
|
|
1301
|
-
* @filename: A file name
|
|
1302
|
-
* @error: return location for a `GError`
|
|
1303
|
-
*
|
|
1304
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. The caller must
|
|
1305
|
-
* assume the reference to the reurned pixbuf. If an error occurred, @error is
|
|
1306
|
-
* set and `NULL` is returned.
|
|
1307
|
-
*
|
|
1308
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1309
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1310
|
-
**/
|
|
1311
|
-
RSVG_DEPRECATED
|
|
1312
|
-
GdkPixbuf *rsvg_pixbuf_from_file (const gchar *filename,
|
|
1313
|
-
GError **error);
|
|
1314
|
-
|
|
1315
|
-
/**
|
|
1316
|
-
* rsvg_pixbuf_from_file_at_zoom:
|
|
1317
|
-
* @filename: A file name
|
|
1318
|
-
* @x_zoom: The horizontal zoom factor
|
|
1319
|
-
* @y_zoom: The vertical zoom factor
|
|
1320
|
-
* @error: return location for a `GError`
|
|
1321
|
-
*
|
|
1322
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
1323
|
-
* from the size indicated by the file by a factor of @x_zoom and @y_zoom. The
|
|
1324
|
-
* caller must assume the reference to the returned pixbuf. If an error
|
|
1325
|
-
* occurred, @error is set and `NULL` is returned.
|
|
1326
|
-
*
|
|
1327
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1328
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1329
|
-
**/
|
|
1330
|
-
RSVG_DEPRECATED
|
|
1331
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
|
|
1332
|
-
double x_zoom,
|
|
1333
|
-
double y_zoom,
|
|
1334
|
-
GError **error);
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* rsvg_pixbuf_from_file_at_size:
|
|
1338
|
-
* @filename: A file name
|
|
1339
|
-
* @width: The new width, or -1
|
|
1340
|
-
* @height: The new height, or -1
|
|
1341
|
-
* @error: return location for a `GError`
|
|
1342
|
-
*
|
|
1343
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
1344
|
-
* from the size indicated to the new size indicated by @width and @height. If
|
|
1345
|
-
* both of these are -1, then the default size of the image being loaded is
|
|
1346
|
-
* used. The caller must assume the reference to the returned pixbuf. If an
|
|
1347
|
-
* error occurred, @error is set and `NULL` is returned.
|
|
1348
|
-
*
|
|
1349
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1350
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1351
|
-
**/
|
|
1352
|
-
RSVG_DEPRECATED
|
|
1353
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *filename,
|
|
1354
|
-
gint width,
|
|
1355
|
-
gint height,
|
|
1356
|
-
GError **error);
|
|
1357
|
-
|
|
1358
|
-
/**
|
|
1359
|
-
* rsvg_pixbuf_from_file_at_max_size:
|
|
1360
|
-
* @filename: A file name
|
|
1361
|
-
* @max_width: The requested max width
|
|
1362
|
-
* @max_height: The requested max height
|
|
1363
|
-
* @error: return location for a `GError`
|
|
1364
|
-
*
|
|
1365
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is uniformly
|
|
1366
|
-
* scaled so that the it fits into a rectangle of size `max_width * max_height`. The
|
|
1367
|
-
* caller must assume the reference to the returned pixbuf. If an error occurred,
|
|
1368
|
-
* @error is set and `NULL` is returned.
|
|
1369
|
-
*
|
|
1370
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1371
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1372
|
-
**/
|
|
1373
|
-
RSVG_DEPRECATED
|
|
1374
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar *filename,
|
|
1375
|
-
gint max_width,
|
|
1376
|
-
gint max_height,
|
|
1377
|
-
GError **error);
|
|
1378
|
-
/**
|
|
1379
|
-
* rsvg_pixbuf_from_file_at_zoom_with_max:
|
|
1380
|
-
* @filename: A file name
|
|
1381
|
-
* @x_zoom: The horizontal zoom factor
|
|
1382
|
-
* @y_zoom: The vertical zoom factor
|
|
1383
|
-
* @max_width: The requested max width
|
|
1384
|
-
* @max_height: The requested max height
|
|
1385
|
-
* @error: return location for a `GError`
|
|
1386
|
-
*
|
|
1387
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
1388
|
-
* from the size indicated by the file by a factor of @x_zoom and @y_zoom. If the
|
|
1389
|
-
* resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
|
|
1390
|
-
* down to fit in that rectangle. The caller must assume the reference to the
|
|
1391
|
-
* returned pixbuf. If an error occurred, @error is set and `NULL` is returned.
|
|
1392
|
-
*
|
|
1393
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1394
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1395
|
-
**/
|
|
1396
|
-
RSVG_DEPRECATED
|
|
1397
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *filename,
|
|
1398
|
-
double x_zoom,
|
|
1399
|
-
double y_zoom,
|
|
1400
|
-
gint max_width,
|
|
1401
|
-
gint max_height,
|
|
1402
|
-
GError **error);
|
|
1403
|
-
|
|
1404
1250
|
/**
|
|
1405
1251
|
* rsvg_handle_get_title:
|
|
1406
1252
|
* @handle: An [class@Rsvg.Handle]
|
|
@@ -1451,6 +1297,10 @@ G_END_DECLS
|
|
|
1451
1297
|
#include <librsvg/rsvg-version.h>
|
|
1452
1298
|
#include <librsvg/rsvg-cairo.h>
|
|
1453
1299
|
|
|
1300
|
+
#if LIBRSVG_CHECK_FEATURE(PIXBUF)
|
|
1301
|
+
#include <librsvg/rsvg-pixbuf.h>
|
|
1302
|
+
#endif
|
|
1303
|
+
|
|
1454
1304
|
#undef __RSVG_RSVG_H_INSIDE__
|
|
1455
1305
|
|
|
1456
1306
|
#endif /* RSVG_H */
|
|
@@ -80,22 +80,17 @@ struct _htmlEntityDesc {
|
|
|
80
80
|
const char *desc; /* the description */
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
/** DOC_DISABLE */
|
|
84
83
|
#ifdef LIBXML_SAX1_ENABLED
|
|
85
|
-
#define XML_GLOBALS_HTML \
|
|
86
|
-
XML_OP(htmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
|
|
87
|
-
#else
|
|
88
|
-
#define XML_GLOBALS_HTML
|
|
89
|
-
#endif
|
|
90
84
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
#undef XML_OP
|
|
85
|
+
XML_DEPRECATED
|
|
86
|
+
XMLPUBVAR const xmlSAXHandlerV1 htmlDefaultSAXHandler;
|
|
94
87
|
|
|
95
|
-
#
|
|
96
|
-
|
|
88
|
+
#ifdef LIBXML_THREAD_ENABLED
|
|
89
|
+
XML_DEPRECATED
|
|
90
|
+
XMLPUBFUN const xmlSAXHandlerV1 *__htmlDefaultSAXHandler(void);
|
|
97
91
|
#endif
|
|
98
|
-
|
|
92
|
+
|
|
93
|
+
#endif /* LIBXML_SAX1_ENABLED */
|
|
99
94
|
|
|
100
95
|
/*
|
|
101
96
|
* There is only few public functions.
|
|
@@ -173,6 +168,7 @@ XMLPUBFUN int
|
|
|
173
168
|
int *inlen, int quoteChar);
|
|
174
169
|
XMLPUBFUN int
|
|
175
170
|
htmlIsScriptAttribute(const xmlChar *name);
|
|
171
|
+
XML_DEPRECATED
|
|
176
172
|
XMLPUBFUN int
|
|
177
173
|
htmlHandleOmittedElem(int val);
|
|
178
174
|
|
|
@@ -251,6 +247,9 @@ XMLPUBFUN htmlDocPtr
|
|
|
251
247
|
const char *URL,
|
|
252
248
|
const char *encoding,
|
|
253
249
|
int options);
|
|
250
|
+
XMLPUBFUN htmlDocPtr
|
|
251
|
+
htmlCtxtParseDocument (htmlParserCtxtPtr ctxt,
|
|
252
|
+
xmlParserInputPtr input);
|
|
254
253
|
XMLPUBFUN htmlDocPtr
|
|
255
254
|
htmlCtxtReadDoc (xmlParserCtxtPtr ctxt,
|
|
256
255
|
const xmlChar *cur,
|
|
@@ -300,7 +299,7 @@ typedef enum {
|
|
|
300
299
|
XMLPUBFUN htmlStatus htmlAttrAllowed(const htmlElemDesc*, const xmlChar*, int) ;
|
|
301
300
|
XMLPUBFUN int htmlElementAllowedHere(const htmlElemDesc*, const xmlChar*) ;
|
|
302
301
|
XMLPUBFUN htmlStatus htmlElementStatusHere(const htmlElemDesc*, const htmlElemDesc*) ;
|
|
303
|
-
XMLPUBFUN htmlStatus htmlNodeStatus(
|
|
302
|
+
XMLPUBFUN htmlStatus htmlNodeStatus(htmlNodePtr, int) ;
|
|
304
303
|
/**
|
|
305
304
|
* htmlDefaultSubelement:
|
|
306
305
|
* @elt: HTML element
|
|
@@ -333,11 +332,5 @@ XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
|
|
|
333
332
|
}
|
|
334
333
|
#endif
|
|
335
334
|
|
|
336
|
-
#else /* LIBXML_HTML_ENABLED */
|
|
337
|
-
|
|
338
|
-
/** DOC_DISABLE */
|
|
339
|
-
#define XML_GLOBALS_HTML
|
|
340
|
-
/** DOC_ENABLE */
|
|
341
|
-
|
|
342
335
|
#endif /* LIBXML_HTML_ENABLED */
|
|
343
336
|
#endif /* __HTML_PARSER_H__ */
|
|
@@ -39,18 +39,7 @@ extern "C" {
|
|
|
39
39
|
* a) default attributes (if any) are added to all nodes
|
|
40
40
|
* b) all character and parsed entity references are resolved
|
|
41
41
|
* In order to achieve this in libxml2 the document MUST be loaded with
|
|
42
|
-
* following
|
|
43
|
-
*
|
|
44
|
-
* xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
|
|
45
|
-
* xmlSubstituteEntitiesDefault(1);
|
|
46
|
-
*
|
|
47
|
-
* or corresponding parser context setting:
|
|
48
|
-
* xmlParserCtxtPtr ctxt;
|
|
49
|
-
*
|
|
50
|
-
* ...
|
|
51
|
-
* ctxt->loadsubset = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
|
|
52
|
-
* ctxt->replaceEntities = 1;
|
|
53
|
-
* ...
|
|
42
|
+
* following options: XML_PARSE_DTDATTR | XML_PARSE_NOENT
|
|
54
43
|
*/
|
|
55
44
|
|
|
56
45
|
/*
|
|
@@ -162,6 +162,13 @@ XMLPUBFUN void
|
|
|
162
162
|
xmlCleanupCharEncodingHandlers (void);
|
|
163
163
|
XMLPUBFUN void
|
|
164
164
|
xmlRegisterCharEncodingHandler (xmlCharEncodingHandlerPtr handler);
|
|
165
|
+
XMLPUBFUN int
|
|
166
|
+
xmlLookupCharEncodingHandler (xmlCharEncoding enc,
|
|
167
|
+
xmlCharEncodingHandlerPtr *out);
|
|
168
|
+
XMLPUBFUN int
|
|
169
|
+
xmlOpenCharEncodingHandler (const char *name,
|
|
170
|
+
int output,
|
|
171
|
+
xmlCharEncodingHandlerPtr *out);
|
|
165
172
|
XMLPUBFUN xmlCharEncodingHandlerPtr
|
|
166
173
|
xmlGetCharEncodingHandler (xmlCharEncoding enc);
|
|
167
174
|
XMLPUBFUN xmlCharEncodingHandlerPtr
|
|
@@ -195,7 +202,9 @@ XMLPUBFUN xmlCharEncoding
|
|
|
195
202
|
xmlDetectCharEncoding (const unsigned char *in,
|
|
196
203
|
int len);
|
|
197
204
|
|
|
205
|
+
/** DOC_DISABLE */
|
|
198
206
|
struct _xmlBuffer;
|
|
207
|
+
/** DOC_ENABLE */
|
|
199
208
|
XMLPUBFUN int
|
|
200
209
|
xmlCharEncOutFunc (xmlCharEncodingHandler *handler,
|
|
201
210
|
struct _xmlBuffer *out,
|
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
#ifndef __XML_ENTITIES_H__
|
|
12
12
|
#define __XML_ENTITIES_H__
|
|
13
13
|
|
|
14
|
+
/** DOC_DISABLE */
|
|
14
15
|
#include <libxml/xmlversion.h>
|
|
15
16
|
#define XML_TREE_INTERNALS
|
|
16
17
|
#include <libxml/tree.h>
|
|
17
18
|
#undef XML_TREE_INTERNALS
|
|
19
|
+
/** DOC_ENABLE */
|
|
18
20
|
|
|
19
21
|
#ifdef __cplusplus
|
|
20
22
|
extern "C" {
|
|
@@ -57,7 +59,7 @@ struct _xmlEntity {
|
|
|
57
59
|
|
|
58
60
|
struct _xmlEntity *nexte; /* unused */
|
|
59
61
|
const xmlChar *URI; /* the full URI as computed */
|
|
60
|
-
int owner; /*
|
|
62
|
+
int owner; /* unused */
|
|
61
63
|
int flags; /* various flags */
|
|
62
64
|
unsigned long expandedSize; /* expanded size */
|
|
63
65
|
};
|
|
@@ -89,6 +91,15 @@ XMLPUBFUN xmlEntityPtr
|
|
|
89
91
|
const xmlChar *content);
|
|
90
92
|
XMLPUBFUN void
|
|
91
93
|
xmlFreeEntity (xmlEntityPtr entity);
|
|
94
|
+
XMLPUBFUN int
|
|
95
|
+
xmlAddEntity (xmlDocPtr doc,
|
|
96
|
+
int extSubset,
|
|
97
|
+
const xmlChar *name,
|
|
98
|
+
int type,
|
|
99
|
+
const xmlChar *ExternalID,
|
|
100
|
+
const xmlChar *SystemID,
|
|
101
|
+
const xmlChar *content,
|
|
102
|
+
xmlEntityPtr *out);
|
|
92
103
|
XMLPUBFUN xmlEntityPtr
|
|
93
104
|
xmlAddDocEntity (xmlDocPtr doc,
|
|
94
105
|
const xmlChar *name,
|
|
@@ -109,6 +109,10 @@ XMLPUBFUN void
|
|
|
109
109
|
/*
|
|
110
110
|
* Add a new entry to the hash table.
|
|
111
111
|
*/
|
|
112
|
+
XMLPUBFUN int
|
|
113
|
+
xmlHashAdd (xmlHashTablePtr hash,
|
|
114
|
+
const xmlChar *name,
|
|
115
|
+
void *userdata);
|
|
112
116
|
XMLPUBFUN int
|
|
113
117
|
xmlHashAddEntry (xmlHashTablePtr hash,
|
|
114
118
|
const xmlChar *name,
|
|
@@ -118,6 +122,11 @@ XMLPUBFUN int
|
|
|
118
122
|
const xmlChar *name,
|
|
119
123
|
void *userdata,
|
|
120
124
|
xmlHashDeallocator dealloc);
|
|
125
|
+
XMLPUBFUN int
|
|
126
|
+
xmlHashAdd2 (xmlHashTablePtr hash,
|
|
127
|
+
const xmlChar *name,
|
|
128
|
+
const xmlChar *name2,
|
|
129
|
+
void *userdata);
|
|
121
130
|
XMLPUBFUN int
|
|
122
131
|
xmlHashAddEntry2 (xmlHashTablePtr hash,
|
|
123
132
|
const xmlChar *name,
|
|
@@ -129,6 +138,12 @@ XMLPUBFUN int
|
|
|
129
138
|
const xmlChar *name2,
|
|
130
139
|
void *userdata,
|
|
131
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);
|
|
132
147
|
XMLPUBFUN int
|
|
133
148
|
xmlHashAddEntry3 (xmlHashTablePtr hash,
|
|
134
149
|
const xmlChar *name,
|
|
@@ -199,6 +214,10 @@ XMLPUBFUN void *
|
|
|
199
214
|
/*
|
|
200
215
|
* Helpers.
|
|
201
216
|
*/
|
|
217
|
+
XMLPUBFUN xmlHashTablePtr
|
|
218
|
+
xmlHashCopySafe (xmlHashTablePtr hash,
|
|
219
|
+
xmlHashCopier copy,
|
|
220
|
+
xmlHashDeallocator dealloc);
|
|
202
221
|
XMLPUBFUN xmlHashTablePtr
|
|
203
222
|
xmlHashCopy (xmlHashTablePtr hash,
|
|
204
223
|
xmlHashCopier copy);
|
|
@@ -119,10 +119,10 @@ XMLPUBFUN void
|
|
|
119
119
|
xmlListMerge (xmlListPtr l1,
|
|
120
120
|
xmlListPtr l2);
|
|
121
121
|
XMLPUBFUN xmlListPtr
|
|
122
|
-
xmlListDup (
|
|
122
|
+
xmlListDup (xmlListPtr old);
|
|
123
123
|
XMLPUBFUN int
|
|
124
124
|
xmlListCopy (xmlListPtr cur,
|
|
125
|
-
|
|
125
|
+
xmlListPtr old);
|
|
126
126
|
/* Link operators */
|
|
127
127
|
XMLPUBFUN void *
|
|
128
128
|
xmlLinkGetData (xmlLinkPtr lk);
|
|
@@ -18,16 +18,21 @@
|
|
|
18
18
|
#ifdef __cplusplus
|
|
19
19
|
extern "C" {
|
|
20
20
|
#endif
|
|
21
|
+
XML_DEPRECATED
|
|
21
22
|
XMLPUBFUN void
|
|
22
23
|
xmlNanoHTTPInit (void);
|
|
24
|
+
XML_DEPRECATED
|
|
23
25
|
XMLPUBFUN void
|
|
24
26
|
xmlNanoHTTPCleanup (void);
|
|
27
|
+
XML_DEPRECATED
|
|
25
28
|
XMLPUBFUN void
|
|
26
29
|
xmlNanoHTTPScanProxy (const char *URL);
|
|
30
|
+
XML_DEPRECATED
|
|
27
31
|
XMLPUBFUN int
|
|
28
32
|
xmlNanoHTTPFetch (const char *URL,
|
|
29
33
|
const char *filename,
|
|
30
34
|
char **contentType);
|
|
35
|
+
XML_DEPRECATED
|
|
31
36
|
XMLPUBFUN void *
|
|
32
37
|
xmlNanoHTTPMethod (const char *URL,
|
|
33
38
|
const char *method,
|
|
@@ -35,6 +40,7 @@ XMLPUBFUN void *
|
|
|
35
40
|
char **contentType,
|
|
36
41
|
const char *headers,
|
|
37
42
|
int ilen);
|
|
43
|
+
XML_DEPRECATED
|
|
38
44
|
XMLPUBFUN void *
|
|
39
45
|
xmlNanoHTTPMethodRedir (const char *URL,
|
|
40
46
|
const char *method,
|
|
@@ -43,34 +49,45 @@ XMLPUBFUN void *
|
|
|
43
49
|
char **redir,
|
|
44
50
|
const char *headers,
|
|
45
51
|
int ilen);
|
|
52
|
+
XML_DEPRECATED
|
|
46
53
|
XMLPUBFUN void *
|
|
47
54
|
xmlNanoHTTPOpen (const char *URL,
|
|
48
55
|
char **contentType);
|
|
56
|
+
XML_DEPRECATED
|
|
49
57
|
XMLPUBFUN void *
|
|
50
58
|
xmlNanoHTTPOpenRedir (const char *URL,
|
|
51
59
|
char **contentType,
|
|
52
60
|
char **redir);
|
|
61
|
+
XML_DEPRECATED
|
|
53
62
|
XMLPUBFUN int
|
|
54
63
|
xmlNanoHTTPReturnCode (void *ctx);
|
|
64
|
+
XML_DEPRECATED
|
|
55
65
|
XMLPUBFUN const char *
|
|
56
66
|
xmlNanoHTTPAuthHeader (void *ctx);
|
|
67
|
+
XML_DEPRECATED
|
|
57
68
|
XMLPUBFUN const char *
|
|
58
69
|
xmlNanoHTTPRedir (void *ctx);
|
|
70
|
+
XML_DEPRECATED
|
|
59
71
|
XMLPUBFUN int
|
|
60
72
|
xmlNanoHTTPContentLength( void * ctx );
|
|
73
|
+
XML_DEPRECATED
|
|
61
74
|
XMLPUBFUN const char *
|
|
62
75
|
xmlNanoHTTPEncoding (void *ctx);
|
|
76
|
+
XML_DEPRECATED
|
|
63
77
|
XMLPUBFUN const char *
|
|
64
78
|
xmlNanoHTTPMimeType (void *ctx);
|
|
79
|
+
XML_DEPRECATED
|
|
65
80
|
XMLPUBFUN int
|
|
66
81
|
xmlNanoHTTPRead (void *ctx,
|
|
67
82
|
void *dest,
|
|
68
83
|
int len);
|
|
69
84
|
#ifdef LIBXML_OUTPUT_ENABLED
|
|
85
|
+
XML_DEPRECATED
|
|
70
86
|
XMLPUBFUN int
|
|
71
87
|
xmlNanoHTTPSave (void *ctxt,
|
|
72
88
|
const char *filename);
|
|
73
89
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
|
90
|
+
XML_DEPRECATED
|
|
74
91
|
XMLPUBFUN void
|
|
75
92
|
xmlNanoHTTPClose (void *ctx);
|
|
76
93
|
#ifdef __cplusplus
|