libdisplay-info/include/log.h
Simon Ser 7834b6ba22 info: introduce di_logger
This can be used by parsers (EDID, CTA, DisplayID, etc) to report
errors.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-08-04 08:40:36 +02:00

21 lines
301 B
C

#ifndef LOG_H
#define LOG_H
/**
* Private logging utilities.
*/
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
struct di_logger {
FILE *f;
const char *section;
bool initialized;
};
void
_di_logger_va_add_failure(struct di_logger *logger, const char fmt[], va_list args);
#endif