Main Page | Class List | File List | Class Members | File Members

ipod_memory.h

Go to the documentation of this file.
00001 /*
00002  * ipod_memory.h
00003  *
00004  * Duane Maxwell
00005  * (c) 2005 by Linspire Inc
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00020  */
00021 
00022 #ifndef __IPOD_MEMORY_H__
00023 #define __IPOD_MEMORY_H__
00024 
00025 #include <stdlib.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00041 typedef void *(*ipod_memory_alloc_func)(size_t size,void *userData);
00042 
00050 typedef void *(*ipod_memory_realloc_func)(void *p, size_t size,void *userData);
00051 
00057 typedef void (*ipod_memory_free_func)(void *p,void *userData);
00058 
00066 extern void ipod_memory_set_funcs(
00067         ipod_memory_alloc_func alloc_func,
00068         ipod_memory_realloc_func realloc_func,
00069         ipod_memory_free_func free_func,
00070         void *userData);
00071 
00077 extern void *ipod_memory_alloc(size_t size);
00078 
00085 extern void *ipod_memory_realloc(void *p,size_t size);
00086 
00091 extern void ipod_memory_free(void *p);
00092 
00095 extern void ipod_memory_report(void);
00096 
00097 #ifdef __cplusplus
00098 };
00099 #endif
00100 
00101 #endif

Generated on Tue Dec 13 14:55:22 2005 for libipod by  doxygen 1.3.9.1