From 5110c4743751145c4ae1934cd1d83bc6c55bb43f Mon Sep 17 00:00:00 2001 From: John Abd-El-Malek Date: Sat, 17 May 2014 22:33:34 -0700 Subject: Initial commit. --- core/src/fxcodec/jbig2/JBig2_Module.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 core/src/fxcodec/jbig2/JBig2_Module.h (limited to 'core/src/fxcodec/jbig2/JBig2_Module.h') diff --git a/core/src/fxcodec/jbig2/JBig2_Module.h b/core/src/fxcodec/jbig2/JBig2_Module.h new file mode 100644 index 0000000000..ccde5ade02 --- /dev/null +++ b/core/src/fxcodec/jbig2/JBig2_Module.h @@ -0,0 +1,32 @@ +// Copyright 2014 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef _JBIG2_MODULE_H_ +#define _JBIG2_MODULE_H_ +#include "JBig2_Define.h" +class CJBig2_Module +{ +public: + + virtual void *JBig2_Malloc(FX_DWORD dwSize) = 0; + + virtual void *JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize) = 0; + + virtual void *JBig2_Malloc3(FX_DWORD num, FX_DWORD dwSize, FX_DWORD dwSize2) = 0; + + virtual void *JBig2_Realloc(FX_LPVOID pMem, FX_DWORD dwSize) = 0; + + virtual void JBig2_Free(FX_LPVOID pMem) = 0; + + virtual void JBig2_Assert(FX_INT32 nExpression) {}; + + virtual void JBig2_Error(FX_LPCSTR format, ...) {}; + + virtual void JBig2_Warn(FX_LPCSTR format, ...) {}; + + virtual void JBig2_Log(FX_LPCSTR format, ...) {}; +}; +#endif -- cgit v1.2.3