From 2563fc3895f2a6a1faf74b46387b99c61be7370a Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 1 Aug 2018 19:13:06 +0000 Subject: Make FPDF_FormHandle be represented as an incomplete type. Make consistent with other public API types. Introduce CPDFSDKFormFillEnvironmentFromFPDFFormHandle() and FPDFFormHandleFromCPDFSDKFormFillEnvironment() helper functions. Use these to kill off some casts in the process. Change-Id: I6230ecdb4cecd03076f5e24c8cc49c45ad694da7 Reviewed-on: https://pdfium-review.googlesource.com/39250 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- public/fpdf_formfill.h | 2 -- public/fpdfview.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'public') diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index 4a703d947a..3381eed5e4 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -10,8 +10,6 @@ // NOLINTNEXTLINE(build/include) #include "fpdfview.h" -typedef void* FPDF_FORMHANDLE; - // These values are return values for a public API, so should not be changed // other than the count when adding new values. #define FORMTYPE_NONE 0 // Document contains no forms diff --git a/public/fpdfview.h b/public/fpdfview.h index a35e34acc3..ac109b9b3a 100644 --- a/public/fpdfview.h +++ b/public/fpdfview.h @@ -44,6 +44,7 @@ typedef struct fpdf_clippath_t__* FPDF_CLIPPATH; typedef const struct fpdf_dest_t__* FPDF_DEST; typedef struct fpdf_document_t__* FPDF_DOCUMENT; typedef struct fpdf_font_t__* FPDF_FONT; +typedef struct fpdf_form_handle_t__* FPDF_FORMHANDLE; typedef struct fpdf_link_t__* FPDF_LINK; typedef struct fpdf_page_t__* FPDF_PAGE; typedef struct fpdf_pagelink_t__* FPDF_PAGELINK; -- cgit v1.2.3