#include <libexif/exif-mem.h>#include <stdarg.h>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 %lu byte(s).", (unsigned long)(s)) |
Typedefs | |
| typedef struct _ExifLog | ExifLog |
| State maintained by the logging interface. | |
| typedef void(* | ExifLogFunc )(ExifLog *log, ExifLogCode, const char *domain, const char *format, va_list args, void *data) |
| Log callback function prototype. | |
Enumerations | |
| enum | ExifLogCode { EXIF_LOG_CODE_NONE, EXIF_LOG_CODE_DEBUG, EXIF_LOG_CODE_NO_MEMORY, EXIF_LOG_CODE_CORRUPT_DATA } |
Functions | |
| ExifLog * | exif_log_new (void) |
| Create a new logging instance. | |
| ExifLog * | exif_log_new_mem (ExifMem *) |
| void | exif_log_ref (ExifLog *log) |
| void | exif_log_unref (ExifLog *log) |
| void | exif_log_free (ExifLog *log) |
| Delete instance of ExifLog. | |
| const char * | exif_log_code_get_title (ExifLogCode code) |
| Return a textual description of the given class of error log. | |
| const char * | exif_log_code_get_message (ExifLogCode code) |
| Return a verbose description of the given class of error log. | |
| void | exif_log_set_func (ExifLog *log, ExifLogFunc func, void *data) |
| Register log callback function. | |
| 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) |
Definition in file exif-log.h.
| #define EXIF_LOG_NO_MEMORY | ( | l, | |||
| d, | |||||
| s | ) | exif_log ((l), EXIF_LOG_CODE_NO_MEMORY, (d), "Could not allocate %lu byte(s).", (unsigned long)(s)) |
Definition at line 110 of file exif-log.h.
Referenced by exif_data_alloc(), exif_data_load_data_entry(), exif_data_load_data_thumbnail(), exif_data_save_data_content(), exif_data_save_data_entry(), exif_entry_alloc(), exif_entry_realloc(), exif_loader_alloc(), exif_mnote_data_canon_load(), exif_mnote_data_canon_save(), exif_mnote_data_fuji_load(), exif_mnote_data_olympus_load(), exif_mnote_data_olympus_save(), exif_mnote_data_pentax_load(), and exif_mnote_data_pentax_save().
| typedef void(* ExifLogFunc)(ExifLog *log, ExifLogCode, const char *domain, const char *format, va_list args, void *data) |
| enum ExifLogCode |
| EXIF_LOG_CODE_NONE | |
| EXIF_LOG_CODE_DEBUG | |
| EXIF_LOG_CODE_NO_MEMORY | |
| EXIF_LOG_CODE_CORRUPT_DATA |
Definition at line 54 of file exif-log.h.
| void exif_log | ( | ExifLog * | log, | |
| ExifLogCode | , | |||
| const char * | domain, | |||
| const char * | format, | |||
| ... | ||||
| ) |
| const char* exif_log_code_get_message | ( | ExifLogCode | code | ) |
Return a verbose description of the given class of error log.
| [in] | code | logging message class |
Definition at line 62 of file exif-log.c.
| const char* exif_log_code_get_title | ( | ExifLogCode | code | ) |
Return a textual description of the given class of error log.
| [in] | code | logging message class |
Definition at line 53 of file exif-log.c.
| void exif_log_free | ( | ExifLog * | log | ) |
Delete instance of ExifLog.
| [in] | log | ExifLog |
Definition at line 112 of file exif-log.c.
References exif_mem_free(), exif_mem_unref(), and _ExifLog::mem.
| ExifLog* exif_log_new | ( | void | ) |
Create a new logging instance.
Definition at line 86 of file exif-log.c.
References exif_log_new_mem(), exif_mem_new_default(), and exif_mem_unref().
Definition at line 71 of file exif-log.c.
References exif_mem_alloc(), exif_mem_ref(), _ExifLog::mem, and _ExifLog::ref_count.
| void exif_log_ref | ( | ExifLog * | log | ) |
| void exif_log_set_func | ( | ExifLog * | log, | |
| ExifLogFunc | func, | |||
| void * | data | |||
| ) |
Register log callback function.
Calls to the log callback function are purely for diagnostic purposes.
| [in] | log | logging state variable |
| [in] | func | callback function to set |
| [in] | data | data to pass into callback function |
Definition at line 123 of file exif-log.c.
References _ExifLog::data, and _ExifLog::func.
| void exif_log_unref | ( | ExifLog * | log | ) |
| void exif_logv | ( | ExifLog * | log, | |
| ExifLogCode | , | |||
| const char * | domain, | |||
| const char * | format, | |||
| va_list | args | |||
| ) |