23 #ifndef LIBEXIF_EXIF_LOG_H
24 #define LIBEXIF_EXIF_LOG_H
89 #ifndef NO_VERBOSE_TAG_STRINGS
93 __attribute__((__format__(printf,4,5)))
97 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
98 #define exif_log(...) do { } while (0)
99 #elif defined(__GNUC__)
100 #define exif_log(x...) do { } while (0)
102 #define exif_log (void)
107 const char *
format, va_list args);
110 #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))
const char * exif_log_code_get_title(ExifLogCode code)
Return a textual description of the given class of error log.
void exif_log(ExifLog *log, ExifLogCode, const char *domain, const char *format,...)
@ EXIF_LOG_CODE_NO_MEMORY
@ EXIF_LOG_CODE_CORRUPT_DATA
void exif_log_set_func(ExifLog *log, ExifLogFunc func, void *data)
Register log callback function.
void exif_log_unref(ExifLog *log)
ExifLog * exif_log_new(void)
Create a new logging instance.
void exif_log_ref(ExifLog *log)
void exif_log_free(ExifLog *log)
Delete instance of ExifLog.
ExifLog * exif_log_new_mem(ExifMem *)
void(* ExifLogFunc)(ExifLog *log, ExifLogCode, const char *domain, const char *format, va_list args, void *data)
Log callback function prototype.
void exif_logv(ExifLog *log, ExifLogCode, const char *domain, const char *format, va_list args)
const char * exif_log_code_get_message(ExifLogCode code)
Return a verbose description of the given class of error log.
Define the ExifMem data type and the associated functions.