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 _JBIG2_MODULE_H_
8 #define _JBIG2_MODULE_H_
9 #include "JBig2_Define.h"
10 class CJBig2_Module
11 {
12 public:
~CJBig2_Module()13     virtual ~CJBig2_Module() { }
14 
15     virtual void *JBig2_Malloc(FX_DWORD dwSize) = 0;
16 
17     virtual void *JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize) = 0;
18 
19     virtual void *JBig2_Malloc3(FX_DWORD num, FX_DWORD dwSize, FX_DWORD dwSize2) = 0;
20 
21     virtual void *JBig2_Realloc(FX_LPVOID pMem, FX_DWORD dwSize) = 0;
22 
23     virtual void JBig2_Free(FX_LPVOID pMem) = 0;
24 
JBig2_Assert(FX_INT32 nExpression)25     virtual void JBig2_Assert(FX_INT32 nExpression) {};
26 
JBig2_Error(FX_LPCSTR format,...)27     virtual	void JBig2_Error(FX_LPCSTR format, ...) {};
28 
JBig2_Warn(FX_LPCSTR format,...)29     virtual void JBig2_Warn(FX_LPCSTR format, ...) {};
30 
JBig2_Log(FX_LPCSTR format,...)31     virtual void JBig2_Log(FX_LPCSTR format, ...) {};
32 };
33 #endif
34