1 /*---------------------------------------------------------------------------* 2 * pmemory_ext.h * 3 * * 4 * Copyright 2007, 2008 Nuance Communciations, Inc. * 5 * * 6 * Licensed under the Apache License, Version 2.0 (the 'License'); * 7 * you may not use this file except in compliance with the License. * 8 * * 9 * You may obtain a copy of the License at * 10 * http://www.apache.org/licenses/LICENSE-2.0 * 11 * * 12 * Unless required by applicable law or agreed to in writing, software * 13 * distributed under the License is distributed on an 'AS IS' BASIS, * 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 15 * See the License for the specific language governing permissions and * 16 * limitations under the License. * 17 * * 18 *---------------------------------------------------------------------------*/ 19 20 21 22 #ifndef _PORTMEMORY_EXT_H 23 #define _PORTMEMORY_EXT_H 24 25 #include <stddef.h> 26 27 #ifdef __cplusplus 28 extern "C" 29 { 30 #endif 31 32 /* TODO - removed PortNewAndTrace and PortDeleteAndTrace * Ian 06-March-2002 */ 33 34 int PortMemoryInit(void); 35 void PortMemoryTerm(void); 36 void* PortNew(size_t sizeInBytes); 37 void PortDelete(void* objectPtr); 38 void PortMemTrackDump(void); 39 int PortGetMaxMemUsed(void); 40 int PortMemGetPoolSize(void); 41 void PortMemSetPoolSize(size_t sizeInBytes); 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif /* _PORTMEMORY_H */ 48