diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-11-11 16:05:30 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-11-14 16:09:39 +0000 |
commit | 37f95f87bdfb2e0b01d649afae5fffe60bf99d3a (patch) | |
tree | da3491c62d6af86c1a5bc4e523e8f9ebe19793d1 /source/fitz/fitz-imp.h | |
parent | c0e1dfdab1a13def046e94d771f8a821ba2a10d9 (diff) | |
download | mupdf-37f95f87bdfb2e0b01d649afae5fffe60bf99d3a.tar.xz |
Make fz_buffer structure private to fitz.
Move the definition of the structure contents into new fitz-imp.h
file. Make all code outside of fitz access the buffer through the
defined API.
Add a convenience API for people that want to get buffers as
null terminated C strings.
Diffstat (limited to 'source/fitz/fitz-imp.h')
-rw-r--r-- | source/fitz/fitz-imp.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/fitz/fitz-imp.h b/source/fitz/fitz-imp.h new file mode 100644 index 00000000..9441aa9c --- /dev/null +++ b/source/fitz/fitz-imp.h @@ -0,0 +1,15 @@ +#ifndef MUPDF_FITZ_IMP_H +#define MUPDF_FITZ_IMP_H + +#include "mupdf/fitz.h" + +struct fz_buffer_s +{ + int refs; + unsigned char *data; + size_t cap, len; + int unused_bits; + int shared; +}; + +#endif |