diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/context.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h index 67b16b00..0dce749c 100644 --- a/include/mupdf/fitz/context.h +++ b/include/mupdf/fitz/context.h @@ -101,6 +101,7 @@ void fz_flush_warnings(fz_context *ctx); struct fz_context_s { + void *user; fz_alloc_context *alloc; fz_locks_context *locks; fz_id_context *id; @@ -190,6 +191,24 @@ fz_context *fz_clone_context(fz_context *ctx); void fz_drop_context(fz_context *ctx); /* + fz_set_user_context: Set the user field in the context. + + NULL initially, this field can be set to any opaque value + required by the user. It is copied on clones. + + Does not throw exceptions. +*/ +void fz_set_user_context(fz_context *ctx, void *user); + +/* + fz_user_context: Read the user field from the context. + + Does not throw exceptions. +*/ +void *fz_user_context(fz_context *ctx); + + +/* fz_aa_level: Get the number of bits of antialiasing we are using. Between 0 and 8. */ |