diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-05-12 16:17:04 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-05-12 16:17:04 -0700 |
commit | b2aa54381811383d4a86fbe7b194907c33e8dcc1 (patch) | |
tree | c6e7003e8c63a060345147a2243d114d19fa54d7 /fpdfsdk/src/fpdfview_c_api_test.h | |
parent | e6bd866c5c64950a8b2836e7254e1f44b2fe0925 (diff) | |
download | pdfium-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 'fpdfsdk/src/fpdfview_c_api_test.h')
-rw-r--r-- | fpdfsdk/src/fpdfview_c_api_test.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fpdfsdk/src/fpdfview_c_api_test.h b/fpdfsdk/src/fpdfview_c_api_test.h new file mode 100644 index 0000000000..755d8215c9 --- /dev/null +++ b/fpdfsdk/src/fpdfview_c_api_test.h @@ -0,0 +1,20 @@ +// Copyright 2015 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef FPDFSDK_SRC_FPDFVIEW_C_API_TEST_H_ +#define FPDFSDK_SRC_FPDFVIEW_C_API_TEST_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +// Function to call from gtest harness to ensure linker resolution. Returns +// 1 on success or 0 on error. +int CheckPDFiumCApi(); + +#ifdef __cplusplus +} +#endif + +#endif // FPDFSDK_SRC_FPDFVIEW_C_API_TEST_H_ |