diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-02-15 16:12:28 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-02-27 14:08:02 +0100 |
commit | e5720af140822099b4f309e98ca5d269af4f8aee (patch) | |
tree | 4ea5c3454a01c07d682c02a4869ff2999f6435ef /include | |
parent | 3af0e2db71223493b7c9888980482743b87afd1b (diff) | |
download | mupdf-e5720af140822099b4f309e98ca5d269af4f8aee.tar.xz |
Remove typedef in favor of explicit enum keyword.
Avoids the silliness of fz_annot_type pdf_annot_type().
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/annot.h | 8 | ||||
-rw-r--r-- | include/mupdf/pdf/appearance.h | 2 |
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); /* |