From ca28cb636331de447125de476decbec333fe613b Mon Sep 17 00:00:00 2001 From: Ralf Sippl Date: Mon, 26 Mar 2018 18:38:20 +0000 Subject: Add FPDFAnnot_CountAttachmentPoints This CL adds a function to the API that returns the number of quadpoint sets. Change-Id: I999bc567a4c98f6c32e87810e7ecfbb634c7b677 Reviewed-on: https://pdfium-review.googlesource.com/29130 Reviewed-by: Lei Zhang Commit-Queue: Lei Zhang --- public/fpdf_annot.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'public') diff --git a/public/fpdf_annot.h b/public/fpdf_annot.h index f4dc03a2c4..a84c4f982a 100644 --- a/public/fpdf_annot.h +++ b/public/fpdf_annot.h @@ -5,6 +5,8 @@ #ifndef PUBLIC_FPDF_ANNOT_H_ #define PUBLIC_FPDF_ANNOT_H_ +#include + // NOLINTNEXTLINE(build/include) #include "fpdfview.h" @@ -310,6 +312,15 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetAttachmentPoints(FPDF_ANNOTATION annot, const FS_QUADPOINTSF* quad_points); +// Experimental API. +// Get the number of sets of quadpoints of an annotation. +// +// annot - handle to an annotation. +// +// Returns the number of sets of quadpoints, or 0 on failure. +FPDF_EXPORT size_t FPDF_CALLCONV +FPDFAnnot_CountAttachmentPoints(FPDF_ANNOTATION annot); + // Experimental API. // Get the attachment points (i.e. quadpoints) of an annotation. // -- cgit v1.2.3