30#include <libexif/exifmem.h>
33typedef struct _ExifLog ExifLog;
38 EXIF_LOG_CODE_NO_MEMORY,
39 EXIF_LOG_CODE_CORRUPT_DATA
44typedef void EXIF_CALLBACK (*
ExifLogFunc) (ExifLog *log, exif_enum(ExifLogCode),
const char *domain,
45 const char *format, va_list args,
void *data);
54EXIF_API(ExifLog *) exif_log_new_mem (ExifMem *);
56EXIF_API(
void) exif_log_unref (ExifLog *log);
64EXIF_API(
void) exif_log_free (ExifLog *log);
71EXIF_API(
const char *) exif_log_code_get_title (exif_enum(ExifLogCode) code);
78EXIF_API(
const char *) exif_log_code_get_message (exif_enum(ExifLogCode) code);
89#ifndef NO_VERBOSE_TAG_STRINGS
90EXIF_API(
void) exif_log (ExifLog *log, exif_enum(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)
106EXIF_API(
void) exif_logv (ExifLog *log, exif_enum(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))
EXIF_API(void) exif_log_ref(ExifLog *log)
Delete instance of ExifLog.
void EXIF_CALLBACK(* ExifLogFunc)(ExifLog *log, exif_enum(ExifLogCode), const char *domain, const char *format, va_list args, void *data)
Log callback function prototype.
Definition: exif-log.h:44