known_schemas 76 lib/common/schemas.c static struct schema_s *known_schemas = NULL; known_schemas 109 lib/common/schemas.c if (known_schemas[lpc].version.v[0] known_schemas 110 lib/common/schemas.c < known_schemas[best].version.v[0]) { known_schemas 218 lib/common/schemas.c known_schemas = realloc_safe(known_schemas, known_schemas 220 lib/common/schemas.c CRM_ASSERT(known_schemas != NULL); known_schemas 221 lib/common/schemas.c memset(known_schemas+last, 0, sizeof(struct schema_s)); known_schemas 222 lib/common/schemas.c known_schemas[last].validator = validator; known_schemas 223 lib/common/schemas.c known_schemas[last].after_transform = after_transform; known_schemas 226 lib/common/schemas.c known_schemas[last].version.v[i] = version->v[i]; known_schemas 232 lib/common/schemas.c known_schemas[last].name = schema_strdup_printf("pacemaker-", *version, ""); known_schemas 233 lib/common/schemas.c known_schemas[last].location = crm_strdup_printf("%s.rng", known_schemas 234 lib/common/schemas.c known_schemas[last].name); known_schemas 238 lib/common/schemas.c schema_scanf(name, "%*[^-]-", known_schemas[last].version, ""); known_schemas 239 lib/common/schemas.c known_schemas[last].name = strdup(name); known_schemas 240 lib/common/schemas.c known_schemas[last].location = strdup(location); known_schemas 244 lib/common/schemas.c known_schemas[last].transform = strdup(transform); known_schemas 249 lib/common/schemas.c known_schemas[last].after_transform = after_transform; known_schemas 251 lib/common/schemas.c if (known_schemas[last].after_transform < 0) { known_schemas 253 lib/common/schemas.c last, known_schemas[last].name, known_schemas[last].location); known_schemas 255 lib/common/schemas.c } else if (known_schemas[last].transform) { known_schemas 257 lib/common/schemas.c last, known_schemas[last].name, known_schemas[last].location, known_schemas 258 lib/common/schemas.c known_schemas[last].after_transform, known_schemas 259 lib/common/schemas.c known_schemas[last].transform); known_schemas 263 lib/common/schemas.c last, known_schemas[last].name, known_schemas[last].location, known_schemas 264 lib/common/schemas.c known_schemas[last].after_transform); known_schemas 519 lib/common/schemas.c switch (known_schemas[lpc].validator) { known_schemas 524 lib/common/schemas.c ctx = (relaxng_ctx_cache_t *) known_schemas[lpc].cache; known_schemas 538 lib/common/schemas.c known_schemas[lpc].cache = NULL; known_schemas 541 lib/common/schemas.c free(known_schemas[lpc].name); known_schemas 542 lib/common/schemas.c free(known_schemas[lpc].location); known_schemas 543 lib/common/schemas.c free(known_schemas[lpc].transform); known_schemas 545 lib/common/schemas.c free(known_schemas); known_schemas 546 lib/common/schemas.c known_schemas = NULL; known_schemas 560 lib/common/schemas.c if (known_schemas[method].validator == schema_validator_none) { known_schemas 566 lib/common/schemas.c file = get_schema_path(known_schemas[method].name, known_schemas 567 lib/common/schemas.c known_schemas[method].location); known_schemas 570 lib/common/schemas.c crm_str(file), known_schemas[method].validator); known_schemas 571 lib/common/schemas.c switch (known_schemas[method].validator) { known_schemas 578 lib/common/schemas.c (relaxng_ctx_cache_t **) & (known_schemas[method].cache)); known_schemas 582 lib/common/schemas.c known_schemas[method].validator); known_schemas 674 lib/common/schemas.c known_schemas[lpc].name); known_schemas 675 lib/common/schemas.c crm_info("XML validated against %s", known_schemas[lpc].name); known_schemas 676 lib/common/schemas.c if(known_schemas[lpc].after_transform == 0) { known_schemas 762 lib/common/schemas.c return known_schemas[version].name; known_schemas 774 lib/common/schemas.c if (safe_str_eq(name, known_schemas[lpc].name)) { known_schemas 823 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>", known_schemas 829 lib/common/schemas.c known_schemas[lpc].name); known_schemas 833 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>"); known_schemas 844 lib/common/schemas.c known_schemas[next].name); known_schemas 856 lib/common/schemas.c next = known_schemas[lpc].after_transform; known_schemas 860 lib/common/schemas.c crm_trace("Stopping at %s", known_schemas[lpc].name); known_schemas 865 lib/common/schemas.c known_schemas[lpc].name, lpc, next, max); known_schemas 868 lib/common/schemas.c } else if (known_schemas[lpc].transform == NULL) { known_schemas 870 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name); known_schemas 876 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name, known_schemas 877 lib/common/schemas.c known_schemas[lpc].transform ? known_schemas[lpc].transform : "no-op"); known_schemas 880 lib/common/schemas.c upgrade = apply_transformation(xml, known_schemas[lpc].transform, to_logs); known_schemas 884 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 889 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 898 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 916 lib/common/schemas.c value ? value : "<none>", known_schemas[*best].name); known_schemas 917 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name);