static void
-catchRNGError(void *ctx,
- const char *msg,
- ...)
+virXMLValidatorRNGErrorCatch(void *ctx,
+ const char *msg,
+ ...)
{
virBuffer *buf = ctx;
va_list args;
static void
-ignoreRNGError(void *ctx G_GNUC_UNUSED,
- const char *msg G_GNUC_UNUSED,
- ...)
+virXMLValidatorRNGErrorIgnore(void *ctx G_GNUC_UNUSED,
+ const char *msg G_GNUC_UNUSED,
+ ...)
{}
}
xmlRelaxNGSetParserErrors(validator->rngParser,
- catchRNGError,
- ignoreRNGError,
+ virXMLValidatorRNGErrorCatch,
+ virXMLValidatorRNGErrorIgnore,
&validator->buf);
if (!(validator->rng = xmlRelaxNGParse(validator->rngParser))) {
}
xmlRelaxNGSetValidErrors(validator->rngValid,
- catchRNGError,
- ignoreRNGError,
+ virXMLValidatorRNGErrorCatch,
+ virXMLValidatorRNGErrorIgnore,
&validator->buf);
return validator;