OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef PUBLIC_FPDF_DATAAVAIL_H_ | 7 #ifndef PUBLIC_FPDF_DATAAVAIL_H_ |
8 #define PUBLIC_FPDF_DATAAVAIL_H_ | 8 #define PUBLIC_FPDF_DATAAVAIL_H_ |
9 | 9 |
10 #include <stddef.h> // For size_t. | 10 #include <stddef.h> // For size_t. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 * Yes | 48 * Yes |
49 * Parameters: | 49 * Parameters: |
50 * pThis - Pointer to the interface structure itself. | 50 * pThis - Pointer to the interface structure itself. |
51 * offset - The offset of the data section in the file. | 51 * offset - The offset of the data section in the file. |
52 * size - The size of the data section | 52 * size - The size of the data section |
53 * Return Value: | 53 * Return Value: |
54 * true means the specified data section is available. | 54 * true means the specified data section is available. |
55 * Comments: | 55 * Comments: |
56 * Called by Foxit SDK to check whether the data section is ready. | 56 * Called by Foxit SDK to check whether the data section is ready. |
57 */ | 57 */ |
58 FPDF_BOOL (*IsDataAvail)(struct _FX_FILEAVAIL* pThis, size_t offset, size_t si
ze); | 58 FPDF_BOOL (*IsDataAvail)(struct _FX_FILEAVAIL* pThis, |
| 59 size_t offset, |
| 60 size_t size); |
59 } FX_FILEAVAIL; | 61 } FX_FILEAVAIL; |
60 | 62 |
61 typedef void* FPDF_AVAIL; | 63 typedef void* FPDF_AVAIL; |
62 | 64 |
63 /** | 65 /** |
64 * Function: FPDFAvail_Create | 66 * Function: FPDFAvail_Create |
65 * Create a document availability provider. | 67 * Create a document availability provider. |
66 * | 68 * |
67 * Parameters: | 69 * Parameters: |
68 * file_avail - Pointer to file availability interface to check | 70 * file_avail - Pointer to file availability interface to check |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 * tell whether a PDF file is a linearized file or not. | 266 * tell whether a PDF file is a linearized file or not. |
265 * | 267 * |
266 */ | 268 */ |
267 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); | 269 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); |
268 | 270 |
269 #ifdef __cplusplus | 271 #ifdef __cplusplus |
270 } | 272 } |
271 #endif | 273 #endif |
272 | 274 |
273 #endif // PUBLIC_FPDF_DATAAVAIL_H_ | 275 #endif // PUBLIC_FPDF_DATAAVAIL_H_ |
OLD | NEW |