exif-mem.h

Go to the documentation of this file.
00001 
00006 /* exif-mem.h
00007  *
00008  * Copyright © 2003 Lutz Müller <lutz@users.sourceforge.net>
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful, 
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details. 
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023  * Boston, MA 02111-1307, USA.
00024  */
00025 
00026 #ifndef __EXIF_MEM_H__
00027 #define __EXIF_MEM_H__
00028 
00029 #include <libexif/exif-utils.h>
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif /* __cplusplus */
00034 
00039 typedef void * (* ExifMemAllocFunc)   (ExifLong s);
00040 
00046 typedef void * (* ExifMemReallocFunc) (void *p, ExifLong s);
00051 typedef void   (* ExifMemFreeFunc)    (void *p);
00052 
00054 typedef struct _ExifMem ExifMem;
00055 
00061 ExifMem *exif_mem_new   (ExifMemAllocFunc a, ExifMemReallocFunc r,
00062                          ExifMemFreeFunc f);
00065 void     exif_mem_ref   (ExifMem *);
00069 void     exif_mem_unref (ExifMem *);
00070 
00071 void *exif_mem_alloc   (ExifMem *m, ExifLong s);
00072 void *exif_mem_realloc (ExifMem *m, void *p, ExifLong s);
00073 void  exif_mem_free    (ExifMem *m, void *p);
00074 
00078 ExifMem *exif_mem_new_default (void);
00079 
00080 #ifdef __cplusplus
00081 }
00082 #endif /* __cplusplus */
00083 
00084 #endif /* __EXIF_MEM_H__ */

Generated on Fri Jun 22 10:54:49 2007 for EXIF library (libexif) API by  doxygen 1.5.2