summaryrefslogtreecommitdiff
path: root/include/mupdf/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-06-22 22:14:17 +0100
committerRobin Watts <robin.watts@artifex.com>2016-06-22 22:18:21 +0100
commit834243dbfc8ab3e9269b7a789d61e3fe0f8e71f7 (patch)
tree0cebf1918cb560163dc373b680aca3f69403d304 /include/mupdf/pdf
parentc92707fece670689c9dd7470e35bdc802946dc45 (diff)
downloadmupdf-834243dbfc8ab3e9269b7a789d61e3fe0f8e71f7.tar.xz
Tweak PDF annot API.
The values returned from the pdf_annot_{contents, author, date} functions should not be altered, hence make it const.
Diffstat (limited to 'include/mupdf/pdf')
-rw-r--r--include/mupdf/pdf/annot.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index beb100df..ed18aae1 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -121,17 +121,17 @@ void pdf_set_annot_contents(fz_context *ctx, pdf_document *doc, pdf_annot *annot
/*
pdf_annot_contents: return the contents of an annotation.
*/
-char *pdf_annot_contents(fz_context *ctx, pdf_annot *annot);
+const char *pdf_annot_contents(fz_context *ctx, pdf_annot *annot);
/*
pdf_annot_author: return the author of an annotation.
*/
-char *pdf_annot_author(fz_context *ctx, pdf_annot *annot);
+const char *pdf_annot_author(fz_context *ctx, pdf_annot *annot);
/*
pdf_annot_author: return the date of an annotation.
*/
-char *pdf_annot_date(fz_context *ctx, pdf_annot *annot);
+const char *pdf_annot_date(fz_context *ctx, pdf_annot *annot);
/*
pdf_annot_irt: return the indirect reference that this annotation is in reply to.