exif-log.h File Reference

log message infrastructure More...

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

Include dependency graph for exif-log.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EXIF_LOG_NO_MEMORY(l, d, s)   exif_log (l, EXIF_LOG_CODE_NO_MEMORY, d, "Could not allocate %i byte(s).", s)

Typedefs

typedef _ExifLog ExifLog
typedef void(*) ExifLogFunc (ExifLog *log, ExifLogCode, const char *domain, const char *format, va_list args, void *data)

Enumerations

enum  ExifLogCode { EXIF_LOG_CODE_NONE, EXIF_LOG_CODE_DEBUG, EXIF_LOG_CODE_NO_MEMORY, EXIF_LOG_CODE_CORRUPT_DATA }

Functions

ExifLogexif_log_new (void)
ExifLogexif_log_new_mem (ExifMem *)
void exif_log_ref (ExifLog *log)
void exif_log_unref (ExifLog *log)
void exif_log_free (ExifLog *log)
const char * exif_log_code_get_title (ExifLogCode)
const char * exif_log_code_get_message (ExifLogCode)
void exif_log_set_func (ExifLog *log, ExifLogFunc func, void *data)
void exif_log (ExifLog *log, ExifLogCode, const char *domain, const char *format,...)
void exif_logv (ExifLog *log, ExifLogCode, const char *domain, const char *format, va_list args)


Detailed Description

log message infrastructure

Copyright © 2004 Lutz Müller <lutz@users.sourceforge.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file exif-log.h.


Define Documentation

#define EXIF_LOG_NO_MEMORY ( l,
d,
 )     exif_log (l, EXIF_LOG_CODE_NO_MEMORY, d, "Could not allocate %i byte(s).", s)

Definition at line 69 of file exif-log.h.

Referenced by exif_data_alloc(), exif_data_save_data_content(), exif_data_save_data_entry(), exif_entry_alloc(), exif_entry_realloc(), and exif_loader_alloc().


Typedef Documentation

typedef struct _ExifLog ExifLog

Definition at line 32 of file exif-log.h.

typedef void(* ) ExifLogFunc(ExifLog *log, ExifLogCode, const char *domain, const char *format, va_list args, void *data)

Log callback function prototype.

Definition at line 51 of file exif-log.h.


Enumeration Type Documentation

enum ExifLogCode

Enumerator:
EXIF_LOG_CODE_NONE 
EXIF_LOG_CODE_DEBUG 
EXIF_LOG_CODE_NO_MEMORY 
EXIF_LOG_CODE_CORRUPT_DATA 

Definition at line 40 of file exif-log.h.


Function Documentation

void exif_log ( ExifLog log,
ExifLogCode  ,
const char *  domain,
const char *  format,
  ... 
)

Definition at line 131 of file exif-log.c.

References exif_logv().

Referenced by exif_content_add_entry(), exif_content_fix(), exif_data_load_data(), exif_data_load_data_content(), exif_data_load_data_entry(), exif_data_load_data_thumbnail(), exif_data_save_data(), exif_data_save_data_content(), exif_loader_write(), exif_loader_write_file(), exif_mnote_data_olympus_get_value(), exif_mnote_data_olympus_load(), and fix_func().

const char* exif_log_code_get_message ( ExifLogCode   ) 

Definition at line 62 of file exif-log.c.

References _, codes, and message.

const char* exif_log_code_get_title ( ExifLogCode   ) 

Definition at line 53 of file exif-log.c.

References _, codes, and title.

void exif_log_free ( ExifLog log  ) 

Definition at line 112 of file exif-log.c.

References exif_mem_free(), exif_mem_unref(), and _ExifLog::mem.

Referenced by exif_log_unref().

ExifLog* exif_log_new ( void   ) 

Definition at line 86 of file exif-log.c.

References exif_log_new_mem(), exif_mem_new_default(), and exif_mem_unref().

ExifLog* exif_log_new_mem ( ExifMem  ) 

Definition at line 71 of file exif-log.c.

References exif_mem_alloc(), exif_mem_ref(), _ExifLog::mem, and _ExifLog::ref_count.

Referenced by exif_log_new().

void exif_log_ref ( ExifLog log  ) 

Definition at line 97 of file exif-log.c.

References _ExifLog::ref_count.

Referenced by exif_content_log(), exif_data_log(), exif_loader_log(), and exif_mnote_data_log().

void exif_log_set_func ( ExifLog log,
ExifLogFunc  func,
void *  data 
)

Register log callback function.

Definition at line 123 of file exif-log.c.

References _ExifLog::data, and _ExifLog::func.

void exif_log_unref ( ExifLog log  ) 

Definition at line 104 of file exif-log.c.

References exif_log_free(), and _ExifLog::ref_count.

Referenced by exif_content_free(), exif_content_log(), exif_data_log(), exif_loader_log(), exif_mnote_data_free(), and exif_mnote_data_log().

void exif_logv ( ExifLog log,
ExifLogCode  ,
const char *  domain,
const char *  format,
va_list  args 
)

Definition at line 142 of file exif-log.c.

References _ExifLog::data, and _ExifLog::func.

Referenced by exif_entry_log(), and exif_log().


Generated on Tue Dec 19 14:34:05 2006 for EXIF library (libexif) Internals by  doxygen 1.5.1