summaryrefslogtreecommitdiff
path: root/public/fpdfview.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-05-12 16:17:04 -0700
committerTom Sepez <tsepez@chromium.org>2015-05-12 16:17:04 -0700
commitb2aa54381811383d4a86fbe7b194907c33e8dcc1 (patch)
treec6e7003e8c63a060345147a2243d114d19fa54d7 /public/fpdfview.h
parente6bd866c5c64950a8b2836e7254e1f44b2fe0925 (diff)
downloadpdfium-b2aa54381811383d4a86fbe7b194907c33e8dcc1.tar.xz
Make (and verify) public/ files compile under C.
This involves adding some missing extern "C" { } declarations, using FPDF_ types instead of C++ types, and converting pass by reference arguments into pointers. Test this using fpdfview_embedertest for simplicity. BUG=pdfium:158 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1130843003
Diffstat (limited to 'public/fpdfview.h')
-rw-r--r--public/fpdfview.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/fpdfview.h b/public/fpdfview.h
index 4e7ee50343..9794d5fd00 100644
--- a/public/fpdfview.h
+++ b/public/fpdfview.h
@@ -623,7 +623,7 @@ DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document);
// Return value:
// The handle of the dest.
//
-DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_BYTESTRING name);
+DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document, FPDF_BYTESTRING name);
// Function: FPDF_GetNamedDest
// Get the specified named destinations of the PDF document by index.
@@ -640,7 +640,7 @@ DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
// 2) Second time pass in allocated |buffer| and buflen to retrieve |buffer|, which should be used as wchar_t*.
// If buflen is not sufficiently large, it will be set to -1 upon return.
//
-DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, void* buffer, long& buflen);
+DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, void* buffer, long* buflen);
#ifdef __cplusplus