examples/sfexamples/oggvorbiscodec/src/OggVorbisUtil/leavealloc.h

00001 // leavealloc.h
00002 //
00003 // Copyright (c) Symbian Software Ltd 2005-2006.  All rights reserved.
00004 //
00005 
00006 
00007 #ifndef __LEAVEALLOC_H__
00008 #define __LEAVEALLOC_H__
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014 #include <stdlib.h>
00015 /*
00016  To make the calls in oggvorbis libraries leave safe, all the methods used for memory allocation
00017  are modified to leave with KErrNoMemory with there is no memory to allocate.
00018  */
00019 void* mallocL(size_t _size);
00020 
00021 void* callocL(size_t _nmemb, size_t _size);
00022 
00023 void* reallocL(void * _r, size_t _size);
00024 
00025 void freeL(void *);
00026 
00027 
00028 #ifdef __cplusplus
00029 }
00030 #endif
00031 
00032 
00033 #endif

Generated by  doxygen 1.6.2