From 6933d36755f90e23308a52c0c3b9c6a4423a9e4c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 28 Dec 2016 13:40:21 +0100 Subject: Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer. --- include/mupdf/fitz/image.h | 1 - include/mupdf/fitz/xml.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h index 49f05a1a..6ce71a14 100644 --- a/include/mupdf/fitz/image.h +++ b/include/mupdf/fitz/image.h @@ -78,7 +78,6 @@ typedef size_t (fz_image_get_size_fn)(fz_context *, fz_image *); fz_image *fz_new_image(fz_context *ctx, int w, int h, int bpc, fz_colorspace *colorspace, int xres, int yres, int interpolate, int imagemask, float *decode, int *colorkey, fz_image *mask, int size, fz_image_get_pixmap_fn *get, fz_image_get_size_fn *get_size, fz_drop_image_fn *drop); fz_image *fz_new_image_from_compressed_buffer(fz_context *ctx, int w, int h, int bpc, fz_colorspace *colorspace, int xres, int yres, int interpolate, int imagemask, float *decode, int *colorkey, fz_compressed_buffer *buffer, fz_image *mask); fz_image *fz_new_image_from_pixmap(fz_context *ctx, fz_pixmap *pixmap, fz_image *mask); -fz_image *fz_new_image_from_data(fz_context *ctx, unsigned char *data, size_t len); fz_image *fz_new_image_from_buffer(fz_context *ctx, fz_buffer *buffer); fz_image *fz_new_image_from_file(fz_context *ctx, const char *path); void fz_drop_image_imp(fz_context *ctx, fz_storable *image); diff --git a/include/mupdf/fitz/xml.h b/include/mupdf/fitz/xml.h index 35608fcc..caf5b3ba 100644 --- a/include/mupdf/fitz/xml.h +++ b/include/mupdf/fitz/xml.h @@ -11,11 +11,11 @@ typedef struct fz_xml_s fz_xml; /* - fz_parse_xml: Parse a zero-terminated string into a tree of xml nodes. + fz_parse_xml: Parse the contents of buffer into a tree of xml nodes. preserve_white: whether to keep or delete all-whitespace nodes. */ -fz_xml *fz_parse_xml(fz_context *ctx, unsigned char *buf, size_t len, int preserve_white); +fz_xml *fz_parse_xml(fz_context *ctx, fz_buffer *buf, int preserve_white); /* fz_xml_prev: Return previous sibling of XML node. -- cgit v1.2.3