summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.