known_schemas 63 lib/common/schemas.c static struct schema_s *known_schemas = NULL; known_schemas 100 lib/common/schemas.c if (known_schemas[lpc].version.v[0] known_schemas 101 lib/common/schemas.c < known_schemas[best].version.v[0]) { known_schemas 188 lib/common/schemas.c known_schemas = pcmk__realloc(known_schemas, known_schemas 190 lib/common/schemas.c CRM_ASSERT(known_schemas != NULL); known_schemas 191 lib/common/schemas.c memset(known_schemas+last, 0, sizeof(struct schema_s)); known_schemas 192 lib/common/schemas.c known_schemas[last].validator = validator; known_schemas 193 lib/common/schemas.c known_schemas[last].after_transform = after_transform; known_schemas 196 lib/common/schemas.c known_schemas[last].version.v[i] = version->v[i]; known_schemas 202 lib/common/schemas.c known_schemas[last].name = schema_strdup_printf("pacemaker-", *version, ""); known_schemas 205 lib/common/schemas.c schema_scanf(name, "%*[^-]-", known_schemas[last].version, ""); known_schemas 206 lib/common/schemas.c known_schemas[last].name = strdup(name); known_schemas 210 lib/common/schemas.c known_schemas[last].transform = strdup(transform); known_schemas 213 lib/common/schemas.c known_schemas[last].transform_enter = strdup(transform_enter); known_schemas 215 lib/common/schemas.c known_schemas[last].transform_onleave = transform_onleave; known_schemas 219 lib/common/schemas.c known_schemas[last].after_transform = after_transform; known_schemas 221 lib/common/schemas.c if (known_schemas[last].after_transform < 0) { known_schemas 223 lib/common/schemas.c last, known_schemas[last].name); known_schemas 225 lib/common/schemas.c } else if (known_schemas[last].transform) { known_schemas 227 lib/common/schemas.c last, known_schemas[last].name, known_schemas 228 lib/common/schemas.c known_schemas[last].after_transform, known_schemas 229 lib/common/schemas.c known_schemas[last].transform); known_schemas 233 lib/common/schemas.c last, known_schemas[last].name, known_schemas 234 lib/common/schemas.c known_schemas[last].after_transform); known_schemas 561 lib/common/schemas.c switch (known_schemas[lpc].validator) { known_schemas 565 lib/common/schemas.c ctx = (relaxng_ctx_cache_t *) known_schemas[lpc].cache; known_schemas 579 lib/common/schemas.c known_schemas[lpc].cache = NULL; known_schemas 582 lib/common/schemas.c free(known_schemas[lpc].name); known_schemas 583 lib/common/schemas.c free(known_schemas[lpc].transform); known_schemas 584 lib/common/schemas.c free(known_schemas[lpc].transform_enter); known_schemas 586 lib/common/schemas.c free(known_schemas); known_schemas 587 lib/common/schemas.c known_schemas = NULL; known_schemas 603 lib/common/schemas.c if (known_schemas[method].validator == schema_validator_none) { known_schemas 609 lib/common/schemas.c if (pcmk__str_eq(known_schemas[method].name, "pacemaker-next", known_schemas 617 lib/common/schemas.c known_schemas[method].name); known_schemas 620 lib/common/schemas.c pcmk__s(file, "missing schema"), known_schemas[method].validator); known_schemas 621 lib/common/schemas.c switch (known_schemas[method].validator) { known_schemas 625 lib/common/schemas.c (relaxng_ctx_cache_t **) & (known_schemas[method].cache)); known_schemas 629 lib/common/schemas.c known_schemas[method].validator); known_schemas 723 lib/common/schemas.c known_schemas[lpc].name); known_schemas 724 lib/common/schemas.c crm_info("XML validated against %s", known_schemas[lpc].name); known_schemas 725 lib/common/schemas.c if(known_schemas[lpc].after_transform == 0) { known_schemas 1029 lib/common/schemas.c return known_schemas[version].name; known_schemas 1041 lib/common/schemas.c if (pcmk__str_eq(name, known_schemas[lpc].name, pcmk__str_casei)) { known_schemas 1090 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>", known_schemas 1096 lib/common/schemas.c known_schemas[lpc].name); known_schemas 1100 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>"); known_schemas 1111 lib/common/schemas.c known_schemas[next].name); known_schemas 1123 lib/common/schemas.c next = known_schemas[lpc].after_transform; known_schemas 1127 lib/common/schemas.c crm_trace("Stopping at %s", known_schemas[lpc].name); known_schemas 1132 lib/common/schemas.c known_schemas[lpc].name, lpc, next, max); known_schemas 1135 lib/common/schemas.c } else if (known_schemas[lpc].transform == NULL known_schemas 1143 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name); known_schemas 1149 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name, known_schemas 1150 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1152 lib/common/schemas.c upgrade = apply_upgrade(xml, &known_schemas[lpc], to_logs); known_schemas 1155 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1160 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1169 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1187 lib/common/schemas.c value ? value : "<none>", known_schemas[*best].name); known_schemas 1188 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name);