OLD | NEW |
1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This "C" (not "C++") file ensures that the public headers compile | 5 // This "C" (not "C++") file ensures that the public headers compile |
6 // and link for "C" (and not just "C++"). | 6 // and link for "C" (and not just "C++"). |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 | 9 |
10 #include "fpdfview_c_api_test.h" | 10 #include "fpdfview_c_api_test.h" |
11 | 11 |
12 #include "../../public/fpdf_dataavail.h" | 12 #include "public/fpdf_dataavail.h" |
13 #include "../../public/fpdf_doc.h" | 13 #include "public/fpdf_doc.h" |
14 #include "../../public/fpdf_edit.h" | 14 #include "public/fpdf_edit.h" |
15 #include "../../public/fpdf_ext.h" | 15 #include "public/fpdf_ext.h" |
16 #include "../../public/fpdf_flatten.h" | 16 #include "public/fpdf_flatten.h" |
17 #include "../../public/fpdf_formfill.h" | 17 #include "public/fpdf_formfill.h" |
18 #include "../../public/fpdf_fwlevent.h" | 18 #include "public/fpdf_fwlevent.h" |
19 #include "../../public/fpdf_ppo.h" | 19 #include "public/fpdf_ppo.h" |
20 #include "../../public/fpdf_progressive.h" | 20 #include "public/fpdf_progressive.h" |
21 #include "../../public/fpdf_save.h" | 21 #include "public/fpdf_save.h" |
22 #include "../../public/fpdf_searchex.h" | 22 #include "public/fpdf_searchex.h" |
23 #include "../../public/fpdf_sysfontinfo.h" | 23 #include "public/fpdf_sysfontinfo.h" |
24 #include "../../public/fpdf_text.h" | 24 #include "public/fpdf_text.h" |
25 #include "../../public/fpdf_transformpage.h" | 25 #include "public/fpdf_transformpage.h" |
26 #include "../../public/fpdfview.h" | 26 #include "public/fpdfview.h" |
27 | 27 |
28 // Scheme for avoiding LTO out of existence, warnings, etc. | 28 // Scheme for avoiding LTO out of existence, warnings, etc. |
29 typedef void (*fnptr)(void); // Legal generic function type for casts. | 29 typedef void (*fnptr)(void); // Legal generic function type for casts. |
30 fnptr g_c_api_test_fnptr = NULL; // Extern, so can't know it doesn't change. | 30 fnptr g_c_api_test_fnptr = NULL; // Extern, so can't know it doesn't change. |
31 #define CHK(x) if ((fnptr)(x) == g_c_api_test_fnptr) return 0 | 31 #define CHK(x) if ((fnptr)(x) == g_c_api_test_fnptr) return 0 |
32 | 32 |
33 // Function to call from gtest harness to ensure linker resolution. | 33 // Function to call from gtest harness to ensure linker resolution. |
34 int CheckPDFiumCApi() { | 34 int CheckPDFiumCApi() { |
35 // fpdf_dataavail.h | 35 // fpdf_dataavail.h |
36 CHK(FPDFAvail_Create); | 36 CHK(FPDFAvail_Create); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 CHK(FPDF_VIEWERREF_GetPrintPageRange); | 209 CHK(FPDF_VIEWERREF_GetPrintPageRange); |
210 CHK(FPDF_VIEWERREF_GetDuplex); | 210 CHK(FPDF_VIEWERREF_GetDuplex); |
211 CHK(FPDF_CountNamedDests); | 211 CHK(FPDF_CountNamedDests); |
212 CHK(FPDF_GetNamedDestByName); | 212 CHK(FPDF_GetNamedDestByName); |
213 CHK(FPDF_GetNamedDest); | 213 CHK(FPDF_GetNamedDest); |
214 | 214 |
215 return 1; | 215 return 1; |
216 } | 216 } |
217 | 217 |
218 #undef CHK | 218 #undef CHK |
OLD | NEW |