summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/writer.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-05-04 21:19:38 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-05-13 11:42:00 +0200
commitb557ece715c9324d4e3cde10bda94d6ae90311cc (patch)
tree3eaf638336a28ca3d00d2519dd5e00476f6f0fe1 /include/mupdf/fitz/writer.h
parent51bd5ba744a806d6b8ccfde7b8f51911a175f2fc (diff)
downloadmupdf-b557ece715c9324d4e3cde10bda94d6ae90311cc.tar.xz
Reference count fz_device.
Language bindings sometimes require objects to be reference counted.
Diffstat (limited to 'include/mupdf/fitz/writer.h')
-rw-r--r--include/mupdf/fitz/writer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mupdf/fitz/writer.h b/include/mupdf/fitz/writer.h
index 5d2b06ba..064b8465 100644
--- a/include/mupdf/fitz/writer.h
+++ b/include/mupdf/fitz/writer.h
@@ -13,7 +13,7 @@ struct fz_document_writer_s
{
fz_device *(*begin_page)(fz_context *ctx, fz_document_writer *wri, const fz_rect *mediabox, fz_matrix *ctm);
void (*end_page)(fz_context *ctx, fz_document_writer *wri, fz_device *dev);
- void (*drop_imp)(fz_context *ctx, fz_document_writer *wri);
+ void (*close)(fz_context *ctx, fz_document_writer *wri);
};
int fz_has_option(fz_context *ctx, const char *opts, const char *key, const char **val);
@@ -22,6 +22,7 @@ fz_document_writer *fz_new_document_writer(fz_context *ctx, const char *path, co
fz_device *fz_begin_page(fz_context *ctx, fz_document_writer *wri, const fz_rect *mediabox, fz_matrix *ctm);
void fz_end_page(fz_context *ctx, fz_document_writer *wri, fz_device *dev);
+void fz_close_document_writer(fz_context *ctx, fz_document_writer *wri);
void fz_drop_document_writer(fz_context *ctx, fz_document_writer *wri);
fz_document_writer *fz_new_cbz_writer(fz_context *ctx, const char *path, const char *options);