Home | History | Annotate | Download | only in include
      1 // Copyright 2014 PDFium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #ifndef _FPDFOOM_H_
      8 #define _FPDFOOM_H_
      9 
     10 #ifndef _FPDFVIEW_H_
     11 #include "fpdfview.h"
     12 #endif
     13 
     14 #ifdef __cplusplus
     15 extern "C" {
     16 #endif
     17 
     18 typedef	struct _OOM_INFO
     19 {
     20 	/**
     21 	* Version number of the interface. Currently must be 1.
     22 	**/
     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 structure itself.
     34 	* 	Return value:
     35 	* 		None.
     36 	* */
     37 
     38 	void(*FSDK_OOM_Handler)(_OOM_INFO* pThis);
     39 }OOM_INFO;
     40 
     41 
     42 /**
     43  * Function: FSDK_SetOOMHandler
     44  *			 Setup A Out-Of-Memory handler for foxit sdk.
     45  * Parameters:
     46  *			oomInfo		-	Pointer to a OOM_INFO structure.
     47  * Return Value:
     48  *			TRUE means successful. FALSE means fails.
     49  **/
     50 
     51 DLLEXPORT FPDF_BOOL STDCALL FSDK_SetOOMHandler(OOM_INFO* oomInfo);
     52 
     53 
     54 #ifdef __cplusplus
     55 };
     56 #endif
     57 
     58 
     59 
     60 
     61 #endif
     62