25 #ifndef LIBEXIF_EXIF_MEM_H
26 #define LIBEXIF_EXIF_MEM_H
39 typedef void * (* ExifMemAllocFunc) (
ExifLong s);
47 typedef void * (* ExifMemReallocFunc) (
void *p,
ExifLong s);
57 typedef struct _ExifMem
ExifMem;
79 void exif_mem_free (
ExifMem *m,
void *p);
void *(* ExifMemReallocFunc)(void *p, ExifLong s)
Should work like realloc()
Definition: exif-mem.h:47
void(* ExifMemFreeFunc)(void *p)
Free method for ExifMem.
Definition: exif-mem.h:54
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition: exif-mem.h:57
ExifMem * exif_mem_new(ExifMemAllocFunc a, ExifMemReallocFunc r, ExifMemFreeFunc f)
Create a new ExifMem.
Definition: exif-mem.c:34
ExifMem * exif_mem_new_default(void)
Create a new ExifMem with default values for your convenience.
Definition: exif-mem.c:95
void exif_mem_ref(ExifMem *)
Refcount an ExifMem.
Definition: exif-mem.c:54
void exif_mem_unref(ExifMem *)
Unrefcount an ExifMem.
Definition: exif-mem.c:61
void *(* ExifMemAllocFunc)(ExifLong s)
Should work like calloc()
Definition: exif-mem.h:39
EXIF data manipulation functions and types.
uint32_t ExifLong
EXIF Unsigned Long data type.
Definition: exif-utils.h:54