From 722dfa0e30d9cbaf8c467edc32a916f653c2132c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 28 Apr 2016 20:26:44 +0100 Subject: Improve header documentation. --- include/mupdf/fitz/document.h | 9 +++++++-- 1 file 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 @@ -151,6 +151,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. @@ -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. -- cgit v1.2.3