summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-12-28 13:40:21 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-01-09 13:21:40 +0100
commit6933d36755f90e23308a52c0c3b9c6a4423a9e4c (patch)
treed845ac62869d8a09fbf638a2c4bb0953efec1eb7 /include
parent7a439812b2226c1e3b203ec603f05b39d159f91e (diff)
downloadmupdf-6933d36755f90e23308a52c0c3b9c6a4423a9e4c.tar.xz
Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/image.h1
-rw-r--r--include/mupdf/fitz/xml.h4
2 files changed, 2 insertions, 3 deletions
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.