exif-mem.c File Reference

#include <libexif/exif-mem.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  _ExifMem

Functions

static void * exif_mem_alloc_func (ExifLong ds)
 Default memory allocation function.
static void * exif_mem_realloc_func (void *d, ExifLong ds)
 Default memory reallocation function.
static void exif_mem_free_func (void *d)
 Default memory free function.
ExifMemexif_mem_new (ExifMemAllocFunc alloc_func, ExifMemReallocFunc realloc_func, ExifMemFreeFunc free_func)
 Create a new ExifMem.
void exif_mem_ref (ExifMem *mem)
 Refcount an ExifMem.
void exif_mem_unref (ExifMem *mem)
 Unrefcount an ExifMem.
void exif_mem_free (ExifMem *mem, void *d)
void * exif_mem_alloc (ExifMem *mem, ExifLong ds)
void * exif_mem_realloc (ExifMem *mem, void *d, ExifLong ds)
ExifMemexif_mem_new_default (void)
 Create a new ExifMem with default values for your convenience.


Function Documentation

void* exif_mem_alloc ( ExifMem mem,
ExifLong  ds 
)

Definition at line 79 of file exif-mem.c.

Referenced by exif_content_new_mem(), exif_data_alloc(), exif_data_new_mem(), exif_entry_alloc(), exif_entry_get_value(), exif_entry_new_mem(), exif_loader_alloc(), exif_loader_new_mem(), exif_log_new_mem(), exif_mnote_data_canon_load(), exif_mnote_data_canon_new(), exif_mnote_data_canon_save(), exif_mnote_data_construct(), exif_mnote_data_fuji_load(), exif_mnote_data_fuji_new(), exif_mnote_data_fuji_save(), exif_mnote_data_olympus_load(), exif_mnote_data_olympus_new(), exif_mnote_data_olympus_save(), exif_mnote_data_pentax_load(), exif_mnote_data_pentax_new(), and exif_mnote_data_pentax_save().

static void* exif_mem_alloc_func ( ExifLong  ds  )  [static]

Default memory allocation function.

Definition at line 14 of file exif-mem.c.

Referenced by exif_mem_new_default().

void exif_mem_free ( ExifMem mem,
void *  d 
)

Definition at line 69 of file exif-mem.c.

Referenced by exif_content_free(), exif_content_new_mem(), exif_content_remove_entry(), exif_data_free(), exif_data_load_data_thumbnail(), exif_data_new_mem(), exif_data_save_data_entry(), exif_entry_fix(), exif_entry_free(), exif_entry_get_value(), exif_entry_new_mem(), exif_entry_realloc(), exif_loader_free(), exif_loader_reset(), exif_log_free(), exif_mem_unref(), exif_mnote_data_canon_clear(), exif_mnote_data_free(), exif_mnote_data_fuji_clear(), exif_mnote_data_olympus_clear(), and exif_mnote_data_pentax_clear().

static void exif_mem_free_func ( void *  d  )  [static]

Default memory free function.

Definition at line 28 of file exif-mem.c.

Referenced by exif_mem_new_default().

ExifMem* exif_mem_new ( ExifMemAllocFunc  a,
ExifMemReallocFunc  r,
ExifMemFreeFunc  f 
)

Create a new ExifMem.

Parameters:
[in] a the allocator function
[in] r the reallocator function
[in] f the free function

Definition at line 34 of file exif-mem.c.

Referenced by exif_mem_new_default().

ExifMem* exif_mem_new_default ( void   ) 

Create a new ExifMem with default values for your convenience.

Returns:
return a new default ExifMem

Definition at line 95 of file exif-mem.c.

Referenced by exif_content_new(), exif_data_new(), exif_entry_new(), exif_loader_new(), and exif_log_new().

void* exif_mem_realloc ( ExifMem mem,
void *  d,
ExifLong  ds 
)

Definition at line 89 of file exif-mem.c.

Referenced by exif_content_add_entry(), exif_content_remove_entry(), exif_data_save_data_content(), exif_data_save_data_entry(), exif_entry_realloc(), exif_mnote_data_canon_save(), exif_mnote_data_fuji_save(), exif_mnote_data_olympus_save(), and exif_mnote_data_pentax_save().

static void* exif_mem_realloc_func ( void *  d,
ExifLong  ds 
) [static]

Default memory reallocation function.

Definition at line 21 of file exif-mem.c.

Referenced by exif_mem_new_default().

void exif_mem_ref ( ExifMem mem  ) 

Refcount an ExifMem.

Definition at line 54 of file exif-mem.c.

Referenced by exif_content_new_mem(), exif_data_new_mem(), exif_entry_new_mem(), exif_loader_new_mem(), exif_log_new_mem(), and exif_mnote_data_construct().

void exif_mem_unref ( ExifMem  ) 

Unrefcount an ExifMem.

If the refcount reaches 0, the ExifMem is freed

Definition at line 61 of file exif-mem.c.

Referenced by exif_content_free(), exif_content_new(), exif_data_free(), exif_data_new(), exif_entry_free(), exif_entry_new(), exif_loader_free(), exif_loader_new(), exif_log_free(), exif_log_new(), and exif_mnote_data_free().


SourceForge.net Logo Generated by doxygen