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 _FPDF_DATAAVAIL_H_ | 7 #ifndef _FPDF_DATAAVAIL_H_ |
8 #define _FPDF_DATAAVAIL_H_ | 8 #define _FPDF_DATAAVAIL_H_ |
9 | 9 |
10 #include <stddef.h> // For size_t. | 10 #include <stddef.h> // For size_t. |
(...skipping 29 matching lines...) Expand all Loading... |
40 * Yes | 40 * Yes |
41 * Parameters: | 41 * Parameters: |
42 * pThis - Pointer to the interface structu
re itself. | 42 * pThis - Pointer to the interface structu
re itself. |
43 * offset - The offset of the data section i
n the file. | 43 * offset - The offset of the data section i
n the file. |
44 * size - The size of the data section | 44 * size - The size of the data section |
45 * Return Value: | 45 * Return Value: |
46 * true means the specified data section is available. | 46 * true means the specified data section is available. |
47 * Comments: | 47 * Comments: |
48 * Called by Foxit SDK to check whether the data section is
ready. | 48 * Called by Foxit SDK to check whether the data section is
ready. |
49 */ | 49 */ |
50 » bool (*IsDataAvail)(struct _FX_FILEAVAIL* pThis, size_t offset, size_t s
ize); | 50 » FPDF_BOOL (*IsDataAvail)(struct _FX_FILEAVAIL* pThis, size_t offset, siz
e_t size); |
51 } FX_FILEAVAIL; | 51 } FX_FILEAVAIL; |
52 | 52 |
53 typedef void* FPDF_AVAIL; | 53 typedef void* FPDF_AVAIL; |
54 | 54 |
55 /** | 55 /** |
56 * Function: FPDFAvail_Create | 56 * Function: FPDFAvail_Create |
57 * Create a document availability provider. | 57 * Create a document availability provider. |
58 * | 58 * |
59 * Parameters: | 59 * Parameters: |
60 * file_avail - Pointer to file availability int
erface to check availability of file data. | 60 * file_avail - Pointer to file availability int
erface to check availability of file data. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 * | 214 * |
215 */ | 215 */ |
216 DLLEXPORT FPDF_BOOL STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); | 216 DLLEXPORT FPDF_BOOL STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); |
217 | 217 |
218 #ifdef __cplusplus | 218 #ifdef __cplusplus |
219 }; | 219 }; |
220 #endif | 220 #endif |
221 | 221 |
222 #endif | 222 #endif |
223 | 223 |
OLD | NEW |