29#include <libxml/xmlerror.h>
32#define oscap_assert_errno(cond, desc) \
33 { if (!(cond)) { if ((errno)) oscap_seterr(OSCAP_EFAMILY_GLIBC, desc); \
34 else oscap_seterr(OSCAP_EFAMILY_OSCAP, desc); } }
36#define oscap_setxmlerr(error) __oscap_setxmlerr (__FILE__, __LINE__, __PRETTY_FUNCTION__, error)
38void __oscap_setxmlerr(
const char *file, uint32_t line,
const char *func,
const xmlError *error);
52#define oscap_seterr(family, ...) __oscap_seterr (__FILE__, __LINE__, __PRETTY_FUNCTION__, family, __VA_ARGS__)
58__attribute__((format (printf, 5, 6)))
59void __oscap_seterr(const
char *file, uint32_t line, const
char *func,
oscap_errfamily_t family, const
char *fmt, ...);
uint16_t oscap_errfamily_t
Error family type.
Definition oscap_error.h:51