summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/context.h
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-04-19 16:54:52 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-05-13 11:42:00 +0200
commitb994d72069d761c8645cc6a0638bde21109c0b40 (patch)
tree2d95cbdb501d81b49210d6c115b51bb5fa9c62a7 /include/mupdf/fitz/context.h
parente67981e781fd087d7cd19e2373b3e054375e82ad (diff)
downloadmupdf-b994d72069d761c8645cc6a0638bde21109c0b40.tar.xz
Introduce a general output context.
This makes it possible to redirect standard out and standard error output streams to output streams of your liking. This means that now you can, in gdb, type: (gdb) call pdf_print_obj(ctx, fz_stdout(ctx), obj, 0) (gdb) call fflush(0) or when dealing with an unresolved indirect reference: (gdb) call pdf_print_obj(ctx, fz_stdout(ctx), pdf_resolve_indirect(ctx, ref), 0) (gdb) call fflush(0)
Diffstat (limited to 'include/mupdf/fitz/context.h')
-rw-r--r--include/mupdf/fitz/context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index 6153e6e1..2d902e62 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -23,6 +23,7 @@ typedef struct fz_tuning_context_s fz_tuning_context;
typedef struct fz_store_s fz_store;
typedef struct fz_glyph_cache_s fz_glyph_cache;
typedef struct fz_document_handler_context_s fz_document_handler_context;
+typedef struct fz_output_context_s fz_output_context;
typedef struct fz_context_s fz_context;
struct fz_alloc_context_s
@@ -123,6 +124,7 @@ struct fz_context_s
fz_glyph_cache *glyph_cache;
fz_tuning_context *tuning;
fz_document_handler_context *handler;
+ fz_output_context *output;
};
/*