summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/annot.h8
-rw-r--r--include/mupdf/pdf/appearance.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index c55f22c5..576ab310 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -1,7 +1,7 @@
#ifndef MUPDF_PDF_ANNOT_H
#define MUPDF_PDF_ANNOT_H
-typedef enum
+enum pdf_annot_type
{
PDF_ANNOT_TEXT,
PDF_ANNOT_LINK,
@@ -29,9 +29,9 @@ typedef enum
PDF_ANNOT_WATERMARK,
PDF_ANNOT_3D,
PDF_ANNOT_UNKNOWN = -1
-} fz_annot_type;
+};
-const char *pdf_string_from_annot_type(fz_context *ctx, fz_annot_type type);
+const char *pdf_string_from_annot_type(fz_context *ctx, enum pdf_annot_type type);
int pdf_annot_type_from_string(fz_context *ctx, const char *subtype);
enum
@@ -130,7 +130,7 @@ void pdf_drop_annots(fz_context *ctx, pdf_annot *annot_list);
specified page. The returned pdf_annot structure is owned by the page
and does not need to be freed.
*/
-pdf_annot *pdf_create_annot(fz_context *ctx, pdf_page *page, fz_annot_type type);
+pdf_annot *pdf_create_annot(fz_context *ctx, pdf_page *page, enum pdf_annot_type type);
/*
pdf_delete_annot: delete an annotation
diff --git a/include/mupdf/pdf/appearance.h b/include/mupdf/pdf/appearance.h
index 53d29636..7aa5058a 100644
--- a/include/mupdf/pdf/appearance.h
+++ b/include/mupdf/pdf/appearance.h
@@ -17,7 +17,7 @@ void pdf_update_text_appearance(fz_context *ctx, pdf_document *doc, pdf_obj *obj
void pdf_update_combobox_appearance(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
void pdf_update_listbox_appearance(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
void pdf_update_pushbutton_appearance(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
-void pdf_update_text_markup_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot, fz_annot_type type);
+void pdf_update_text_markup_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot, enum pdf_annot_type type);
void pdf_update_ink_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot);
void pdf_update_text_annot_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot);
/*