summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/document.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-28 20:26:44 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-29 12:20:16 +0100
commit722dfa0e30d9cbaf8c467edc32a916f653c2132c (patch)
tree72b63e961cc8beb1a587a42007269b25bf179c8b /include/mupdf/fitz/document.h
parent858d56ff790966ea614a0217510cdf36d0496488 (diff)
downloadmupdf-722dfa0e30d9cbaf8c467edc32a916f653c2132c.tar.xz
Improve header documentation.
Diffstat (limited to 'include/mupdf/fitz/document.h')
-rw-r--r--include/mupdf/fitz/document.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index c3d96280..1f3f474d 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -152,6 +152,13 @@ void *fz_new_document_of_size(fz_context *ctx, int size);
#define fz_new_document(C,M) ((M*)Memento_label(fz_new_document_of_size(ctx, sizeof(M)), #M))
/*
+ fz_keep_document: Keep a reference to an open document.
+
+ Does not throw exceptions.
+*/
+fz_document *fz_keep_document(fz_context *ctx, fz_document *doc);
+
+/*
fz_drop_document: Release an open document.
The resource store in the context associated with fz_document
@@ -162,8 +169,6 @@ void *fz_new_document_of_size(fz_context *ctx, int size);
*/
void fz_drop_document(fz_context *ctx, fz_document *doc);
-fz_document *fz_keep_document(fz_context *ctx, fz_document *doc);
-
/*
fz_needs_password: Check if a document is encrypted with a
non-blank password.