diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-10-02 15:00:56 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-10-02 15:21:43 +0100 |
commit | d203b82976bbcfc41995c2a0d05eec467112297b (patch) | |
tree | cc567ef17b88fb3de8eecc7737c55a1541f730a3 /include | |
parent | 6d57575a362af052cbc43f00fba5d853bc81767c (diff) | |
download | mupdf-d203b82976bbcfc41995c2a0d05eec467112297b.tar.xz |
Reference count fz_outline struct.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/outline.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/include/mupdf/fitz/outline.h b/include/mupdf/fitz/outline.h index f0b2cc42..c3f724bc 100644 --- a/include/mupdf/fitz/outline.h +++ b/include/mupdf/fitz/outline.h @@ -30,6 +30,7 @@ typedef struct fz_outline_s fz_outline; struct fz_outline_s { + int refs; char *title; fz_link_dest dest; fz_outline *next; @@ -37,31 +38,14 @@ struct fz_outline_s int is_open; }; -/* - fz_print_outline_xml: Dump the given outlines as (pseudo) XML. - - out: The file handle to output to. - - outline: The outlines to output. -*/ +/* fz_print_outline_xml: Print an outline to 'out' as XML. */ void fz_print_outline_xml(fz_context *ctx, fz_output *out, fz_outline *outline); -/* - fz_print_outline: Dump the given outlines to as text. - - out: The file handle to output to. - - outline: The outlines to output. -*/ +/* fz_print_outline: Print an outline to 'out' is plain text. */ void fz_print_outline(fz_context *ctx, fz_output *out, fz_outline *outline); -/* - fz_drop_outline: Free hierarchical outline. - - Free an outline obtained from fz_load_outline. - - Does not throw exceptions. -*/ +fz_outline *fz_new_outline(fz_context *ctx); +fz_outline *fz_keep_outline(fz_context *ctx, fz_outline *outline); void fz_drop_outline(fz_context *ctx, fz_outline *outline); #endif |