| 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> | 10 #include <stddef.h> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // file - pointer to a file access interface. | 57 // file - pointer to a file access interface. |
| 58 // | 58 // |
| 59 // Returns a handle to the document availability provider, or NULL on error. | 59 // Returns a handle to the document availability provider, or NULL on error. |
| 60 // | 60 // |
| 61 // |FPDFAvail_Destroy| must be called when done with the availability provider. | 61 // |FPDFAvail_Destroy| must be called when done with the availability provider. |
| 62 DLLEXPORT FPDF_AVAIL STDCALL FPDFAvail_Create(FX_FILEAVAIL* file_avail, | 62 DLLEXPORT FPDF_AVAIL STDCALL FPDFAvail_Create(FX_FILEAVAIL* file_avail, |
| 63 FPDF_FILEACCESS* file); | 63 FPDF_FILEACCESS* file); |
| 64 | 64 |
| 65 // Destroy the |avail| document availability provider. | 65 // Destroy the |avail| document availability provider. |
| 66 // | 66 // |
| 67 // |avail| - handle to document availability provider to be destroyed. | 67 // avail - handle to document availability provider to be destroyed. |
| 68 DLLEXPORT void STDCALL FPDFAvail_Destroy(FPDF_AVAIL avail); | 68 DLLEXPORT void STDCALL FPDFAvail_Destroy(FPDF_AVAIL avail); |
| 69 | 69 |
| 70 // Download hints interface. Used to receive hints for further downloading. | 70 // Download hints interface. Used to receive hints for further downloading. |
| 71 typedef struct _FX_DOWNLOADHINTS { | 71 typedef struct _FX_DOWNLOADHINTS { |
| 72 // Version number of the interface. Must be 1. | 72 // Version number of the interface. Must be 1. |
| 73 int version; | 73 int version; |
| 74 | 74 |
| 75 // Add a section to be downloaded. | 75 // Add a section to be downloaded. |
| 76 // | 76 // |
| 77 // Interface Version: 1 | 77 // Interface Version: 1 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // when we have 1k of data. If the files size less than 1k, it returns | 188 // when we have 1k of data. If the files size less than 1k, it returns |
| 189 // |PDF_LINEARIZATION_UNKNOWN| as there is insufficient information to determine | 189 // |PDF_LINEARIZATION_UNKNOWN| as there is insufficient information to determine |
| 190 // if the PDF is linearlized. | 190 // if the PDF is linearlized. |
| 191 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); | 191 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); |
| 192 | 192 |
| 193 #ifdef __cplusplus | 193 #ifdef __cplusplus |
| 194 } // extern "C" | 194 } // extern "C" |
| 195 #endif // __cplusplus | 195 #endif // __cplusplus |
| 196 | 196 |
| 197 #endif // PUBLIC_FPDF_DATAAVAIL_H_ | 197 #endif // PUBLIC_FPDF_DATAAVAIL_H_ |
| OLD | NEW |