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 "fpdfsdk/fpdfview_c_api_test.h" | 10 #include "fpdfsdk/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_structtree.h" |
23 #include "public/fpdf_sysfontinfo.h" | 24 #include "public/fpdf_sysfontinfo.h" |
24 #include "public/fpdf_text.h" | 25 #include "public/fpdf_text.h" |
25 #include "public/fpdf_transformpage.h" | 26 #include "public/fpdf_transformpage.h" |
26 #include "public/fpdfview.h" | 27 #include "public/fpdfview.h" |
27 | 28 |
28 // Scheme for avoiding LTO out of existence, warnings, etc. | 29 // Scheme for avoiding LTO out of existence, warnings, etc. |
29 typedef void (*fnptr)(void); // Legal generic function type for casts. | 30 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. | 31 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 | 32 #define CHK(x) if ((fnptr)(x) == g_c_api_test_fnptr) return 0 |
32 | 33 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 CHK(FPDF_RenderPage_Continue); | 147 CHK(FPDF_RenderPage_Continue); |
147 CHK(FPDF_RenderPage_Close); | 148 CHK(FPDF_RenderPage_Close); |
148 | 149 |
149 // fpdf_save.h | 150 // fpdf_save.h |
150 CHK(FPDF_SaveAsCopy); | 151 CHK(FPDF_SaveAsCopy); |
151 CHK(FPDF_SaveWithVersion); | 152 CHK(FPDF_SaveWithVersion); |
152 | 153 |
153 // fpdf_searchex.h | 154 // fpdf_searchex.h |
154 CHK(FPDFText_GetCharIndexFromTextIndex); | 155 CHK(FPDFText_GetCharIndexFromTextIndex); |
155 | 156 |
| 157 // fpdf_structtree.h |
| 158 CHK(FPDF_StructTree_GetForPage); |
| 159 CHK(FPDF_StructTree_Close); |
| 160 CHK(FPDF_StructTree_CountChildren); |
| 161 CHK(FPDF_StructTree_GetChildAtIndex); |
| 162 CHK(FPDF_StructElement_GetAltText); |
| 163 CHK(FPDF_StructElement_CountChildren); |
| 164 CHK(FPDF_StructElement_GetChildAtIndex); |
| 165 |
156 // fpdf_sysfontinfo.h | 166 // fpdf_sysfontinfo.h |
157 CHK(FPDF_GetDefaultTTFMap); | 167 CHK(FPDF_GetDefaultTTFMap); |
158 CHK(FPDF_AddInstalledFont); | 168 CHK(FPDF_AddInstalledFont); |
159 CHK(FPDF_SetSystemFontInfo); | 169 CHK(FPDF_SetSystemFontInfo); |
160 CHK(FPDF_GetDefaultSystemFontInfo); | 170 CHK(FPDF_GetDefaultSystemFontInfo); |
161 CHK(FPDF_FreeDefaultSystemFontInfo); | 171 CHK(FPDF_FreeDefaultSystemFontInfo); |
162 | 172 |
163 // fpdf_text.h | 173 // fpdf_text.h |
164 CHK(FPDFText_LoadPage); | 174 CHK(FPDFText_LoadPage); |
165 CHK(FPDFText_ClosePage); | 175 CHK(FPDFText_ClosePage); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 #ifdef PDF_ENABLE_XFA | 247 #ifdef PDF_ENABLE_XFA |
238 CHK(FPDF_BStr_Init); | 248 CHK(FPDF_BStr_Init); |
239 CHK(FPDF_BStr_Set); | 249 CHK(FPDF_BStr_Set); |
240 CHK(FPDF_BStr_Clear); | 250 CHK(FPDF_BStr_Clear); |
241 #endif | 251 #endif |
242 | 252 |
243 return 1; | 253 return 1; |
244 } | 254 } |
245 | 255 |
246 #undef CHK | 256 #undef CHK |
OLD | NEW |