};
+/**
+ * Validate that the schema member doesn't have some significant features:
+ * - 'deprecated' - schema member is deprecated
+ */
static int
-testQEMUSchemaValidateDeprecated(virJSONValue *root,
+testQEMUSchemaValidateFeatures(virJSONValue *root,
const char *name,
struct testQEMUSchemaValidateCtxt *ctxt)
{
return -1;
}
- /* validate that the member is not deprecated */
- if ((rc = testQEMUSchemaValidateDeprecated(keymember, key, data->ctxt)) < 0)
+ /* validate that the member doesn't have some of the significant features */
+ if ((rc = testQEMUSchemaValidateFeatures(keymember, key, data->ctxt)) < 0)
return rc;
/* lookup schema entry for keytype */
if (STREQ_NULLABLE(objstr, virJSONValueObjectGetString(member, "name"))) {
int rc;
- /* the new 'members' array allows us to check deprecations */
- if ((rc = testQEMUSchemaValidateDeprecated(member, objstr, ctxt)) < 0)
+ /* the new 'members' array allows us to check features */
+ if ((rc = testQEMUSchemaValidateFeatures(member, objstr, ctxt)) < 0)
return rc;
virBufferAsprintf(ctxt->debug, "'%s' OK", NULLSTR(objstr));
const char *t = virJSONValueObjectGetString(root, "meta-type");
int rc;
- if ((rc = testQEMUSchemaValidateDeprecated(root, n, ctxt)) < 0)
+ if ((rc = testQEMUSchemaValidateFeatures(root, n, ctxt)) < 0)
return rc;
if (STREQ_NULLABLE(t, "builtin")) {
return -1;
}
- if ((rc = testQEMUSchemaValidateDeprecated(schemarootcommand, command, &ctxt)) < 0)
+ if ((rc = testQEMUSchemaValidateFeatures(schemarootcommand, command, &ctxt)) < 0)
return rc;
if (!arguments)