From d203b82976bbcfc41995c2a0d05eec467112297b Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 2 Oct 2015 15:00:56 +0100 Subject: Reference count fz_outline struct. --- include/mupdf/fitz/outline.h | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) (limited to 'include') 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 -- cgit v1.2.3