|
EXIF library (libexif) Internals 0.6.26
|
Log message infrastructure. More...
Go to the source code of this file.
Macros | |
| #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) |
Log message infrastructure.
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 112 of file exif-log.h.
State maintained by the logging interface.
Definition at line 36 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 79 of file exif-log.h.
| enum ExifLogCode |
| Enumerator | |
|---|---|
| EXIF_LOG_CODE_NONE | |
| EXIF_LOG_CODE_DEBUG | |
| EXIF_LOG_CODE_NO_MEMORY | |
| EXIF_LOG_CODE_CORRUPT_DATA | |
Definition at line 56 of file exif-log.h.
| void exif_log | ( | ExifLog * | log, |
| ExifLogCode | code, | ||
| const char * | domain, | ||
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 137 of file exif-log.c.
References code, exif_logv(), and format.
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_data_save_data_entry(), exif_loader_get_buf(), exif_loader_write(), exif_loader_write_file(), exif_mnote_data_apple_load(), exif_mnote_data_canon_load(), exif_mnote_data_fuji_load(), exif_mnote_data_olympus_load(), exif_mnote_data_pentax_load(), exif_mnote_data_pentax_save(), fix_func(), interpret_maker_note(), log_null_test(), and remove_not_recorded().
| const char * exif_log_code_get_message | ( | ExifLogCode | code | ) |
| const char * exif_log_code_get_title | ( | ExifLogCode | code | ) |
| void exif_log_free | ( | ExifLog * | log | ) |
Delete instance of ExifLog.
| [in] | log | ExifLog |
Definition at line 114 of file exif-log.c.
References exif_mem_free(), exif_mem_unref(), and _ExifLog::mem.
Referenced by exif_log_unref(), and log_null_test().
| ExifLog * exif_log_new | ( | void | ) |
Create a new logging instance.
Definition at line 88 of file exif-log.c.
References exif_log_new_mem(), exif_mem_new_default(), and exif_mem_unref().
Referenced by log_null_test(), main(), and test_parse().
Definition at line 73 of file exif-log.c.
References exif_mem_alloc(), exif_mem_ref(), _ExifLog::mem, and _ExifLog::ref_count.
Referenced by exif_log_new(), and log_null_test().
| void exif_log_ref | ( | ExifLog * | log | ) |
Definition at line 99 of file exif-log.c.
References _ExifLog::ref_count.
Referenced by exif_content_log(), exif_data_log(), exif_loader_log(), exif_mnote_data_log(), and log_null_test().
| 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 125 of file exif-log.c.
References _ExifLog::data, and _ExifLog::func.
Referenced by log_null_test(), main(), and test_parse().
| void exif_log_unref | ( | ExifLog * | log | ) |
Definition at line 106 of file exif-log.c.
References exif_log_free(), and _ExifLog::ref_count.
Referenced by exif_content_free(), exif_content_log(), exif_data_free(), exif_data_log(), exif_loader_free(), exif_loader_log(), exif_mnote_data_free(), exif_mnote_data_log(), and log_null_test().
| void exif_logv | ( | ExifLog * | log, |
| ExifLogCode | code, | ||
| const char * | domain, | ||
| const char * | format, | ||
| va_list | args | ||
| ) |
Definition at line 148 of file exif-log.c.
References code, _ExifLog::data, format, and _ExifLog::func.
Referenced by exif_entry_log(), exif_log(), and log_null_test().