EXIF library (libexif) API 0.6.22
|
Define the ExifMem data type and the associated functions. More...
#include <libexif/exifutil.h>
Go to the source code of this file.
Typedefs | |
typedef struct _ExifMem | ExifMem |
typedef void *EXIF_CALLBACK(* | ExifMemAllocFunc) (ExifLong s) |
Should work like calloc() | |
typedef void *EXIF_CALLBACK(* | ExifMemReallocFunc) (void *p, ExifLong s) |
Should work like realloc() | |
typedef void EXIF_CALLBACK(* | ExifMemFreeFunc) (void *p) |
Free method for ExifMem. | |
Functions | |
EXIF_API (ExifMem *) exif_mem_new(ExifMemAllocFunc a | |
Create a new ExifMem. | |
EXIF_API (void) exif_mem_ref(ExifMem *) | |
Refcount an ExifMem. | |
EXIF_API (void *) exif_mem_alloc(ExifMem *m | |
Variables | |
ExifMemReallocFunc | r |
ExifMemReallocFunc ExifMemFreeFunc | f |
ExifLong | s |
void * | p |
Define the ExifMem data type and the associated functions.
ExifMem defines the memory management functions used within libexif.
typedef void *EXIF_CALLBACK(* ExifMemAllocFunc) (ExifLong s) |
Should work like calloc()
[in] | s | the size of the block to allocate. |
typedef void EXIF_CALLBACK(* ExifMemFreeFunc) (void *p) |
Free method for ExifMem.
[in] | p | the pointer to free |
typedef void *EXIF_CALLBACK(* ExifMemReallocFunc) (void *p, ExifLong s) |
Should work like realloc()
[in] | p | the pointer to reallocate |
[in] | s | the size of the reallocated block |
EXIF_API | ( | ExifMem * | ) |
Create a new ExifMem.
Create a new ExifMem with default values for your convenience.
[in] | a | the allocator function |
[in] | r | the reallocator function |
[in] | f | the free function |
EXIF_API | ( | void | ) |
Refcount an ExifMem.
Unrefcount an ExifMem.
If the refcount reaches 0, the ExifMem is freed