23 #ifndef __EXIF_LOG_H__
24 #define __EXIF_LOG_H__
43 void exif_log_ref (
ExifLog *log);
44 void exif_log_unref (
ExifLog *log);
52 void exif_log_free (
ExifLog *log);
57 EXIF_LOG_CODE_NO_MEMORY,
58 EXIF_LOG_CODE_CORRUPT_DATA
66 const char *exif_log_code_get_title (ExifLogCode code);
73 const char *exif_log_code_get_message (ExifLogCode code);
78 const char *format, va_list args,
void *data);
89 #ifndef NO_VERBOSE_TAG_STRINGS
90 void exif_log (
ExifLog *log, ExifLogCode,
const char *domain,
91 const char *format, ...)
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)
106 void exif_logv (
ExifLog *log, ExifLogCode,
const char *domain,
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))