Make (and verify) public/ files compile under C.
authorTom Sepez <tsepez@chromium.org>
Tue, 12 May 2015 23:17:04 +0000 (16:17 -0700)
committerTom Sepez <tsepez@chromium.org>
Tue, 12 May 2015 23:17:04 +0000 (16:17 -0700)
commitb2aa54381811383d4a86fbe7b194907c33e8dcc1
treec6e7003e8c63a060345147a2243d114d19fa54d7
parente6bd866c5c64950a8b2836e7254e1f44b2fe0925
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
14 files changed:
BUILD.gn
fpdfsdk/src/fpdfview.cpp
fpdfsdk/src/fpdfview_c_api_test.c [new file with mode: 0644]
fpdfsdk/src/fpdfview_c_api_test.h [new file with mode: 0644]
fpdfsdk/src/fpdfview_embeddertest.cpp
pdfium.gyp
public/fpdf_dataavail.h
public/fpdf_ext.h
public/fpdf_fwlevent.h
public/fpdf_save.h
public/fpdf_transformpage.h
public/fpdfview.h
samples/pdfium_test.cc
testing/embedder_test.cpp