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 _FPDFOOM_H_ | 7 #ifndef _FPDFOOM_H_ |
8 #define _FPDFOOM_H_ | 8 #define _FPDFOOM_H_ |
9 | 9 |
10 #ifndef _FPDFVIEW_H_ | 10 #ifndef _FPDFVIEW_H_ |
11 #include "fpdfview.h" | 11 #include "fpdfview.h" |
12 #endif | 12 #endif |
13 | 13 |
14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
15 extern "C" { | 15 extern "C" { |
16 #endif | 16 #endif |
17 | 17 |
18 typedef»struct _OOM_INFO | 18 typedef struct _OOM_INFO { |
19 { | 19 /** |
20 » /** | 20 * Version number of the interface. Currently must be 1. |
21 » * Version number of the interface. Currently must be 1. | 21 **/ |
22 » **/ | 22 int version; |
23 » int version; | |
24 » | |
25 » /** | |
26 » * Method: FSDK_OOM_Handler | |
27 » *» » » Out-Of-Memory handling function. | |
28 » * Interface Version: | |
29 » *» » » 1 | |
30 » * Implementation Required: | |
31 » *» » » Yes | |
32 » * Parameters: | |
33 » *» » pThis» » -» Pointer to the interface structu
re itself. | |
34 » * » Return value: | |
35 » * » » None. | |
36 » * */ | |
37 | 23 |
38 » void(*FSDK_OOM_Handler)(_OOM_INFO* pThis); | 24 /** |
39 }OOM_INFO; | 25 * Method: FSDK_OOM_Handler |
| 26 *» » » Out-Of-Memory handling function. |
| 27 * Interface Version: |
| 28 *» » » 1 |
| 29 * Implementation Required: |
| 30 *» » » Yes |
| 31 * Parameters: |
| 32 *» » pThis» » -» Pointer to the interface structure |
| 33 *itself. |
| 34 * » Return value: |
| 35 * » » None. |
| 36 * */ |
40 | 37 |
| 38 void (*FSDK_OOM_Handler)(_OOM_INFO* pThis); |
| 39 } OOM_INFO; |
41 | 40 |
42 /** | 41 /** |
43 * Function: FSDK_SetOOMHandler | 42 * Function: FSDK_SetOOMHandler |
44 *» » » Setup A Out-Of-Memory handler for foxit sdk. | 43 *» » » Setup A Out-Of-Memory handler for foxit sdk. |
45 * Parameters: | 44 * Parameters: |
46 * oomInfo - Pointer to a OOM_INFO structure. | 45 * oomInfo - Pointer to a OOM_INFO structure. |
47 * Return Value: | 46 * Return Value: |
48 *» » » TRUE means successful. FALSE means fails. | 47 *» » » TRUE means successful. FALSE means fails. |
49 **/ | 48 **/ |
50 | 49 |
51 DLLEXPORT FPDF_BOOL STDCALL FSDK_SetOOMHandler(OOM_INFO* oomInfo); | 50 DLLEXPORT FPDF_BOOL STDCALL FSDK_SetOOMHandler(OOM_INFO* oomInfo); |
52 | 51 |
53 | |
54 #ifdef __cplusplus | 52 #ifdef __cplusplus |
55 }; | 53 }; |
56 #endif | 54 #endif |
57 | 55 |
58 | |
59 | |
60 | |
61 #endif | 56 #endif |
OLD | NEW |