diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-07-20 11:02:41 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-07-20 17:18:59 +0100 |
commit | 08cf4d8a9353b6bb938492cb9e7c3d1ba4aabf08 (patch) | |
tree | 705a39c9f3d5853e93384d7217ef2cdb9e08f4b1 /include/mupdf/fitz/output.h | |
parent | 6d006a43d50bcbfc20cbb574c6953cfcfe906208 (diff) | |
download | mupdf-08cf4d8a9353b6bb938492cb9e7c3d1ba4aabf08.tar.xz |
Tweak fz_tempfile to include directory hint.
In android, we can't write to '.', and we don't have
TMP defined. Therefore use the path of the supplied file as
a hint.
Diffstat (limited to 'include/mupdf/fitz/output.h')
-rw-r--r-- | include/mupdf/fitz/output.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/mupdf/fitz/output.h b/include/mupdf/fitz/output.h index 36d194f8..94a3e45f 100644 --- a/include/mupdf/fitz/output.h +++ b/include/mupdf/fitz/output.h @@ -103,8 +103,13 @@ int fz_snprintf(char *buffer, int space, const char *fmt, ...); /* fz_tempfilename: Get a temporary filename based upon 'base'. - This must be freed. + + 'hint' is the path of a file (normally the existing document file) + supplied to give the function an idea of what directory to use. This + may or may not be used depending on the implementations whim. + + The returned path must be freed. */ -char *fz_tempfilename(fz_context *ctx, const char *base); +char *fz_tempfilename(fz_context *ctx, const char *base, const char *hint); #endif |