known_schemas 66 lib/common/schemas.c static struct schema_s *known_schemas = NULL; known_schemas 102 lib/common/schemas.c if (known_schemas[lpc].version.v[0] known_schemas 103 lib/common/schemas.c < known_schemas[best].version.v[0]) { known_schemas 190 lib/common/schemas.c known_schemas = pcmk__realloc(known_schemas, known_schemas 192 lib/common/schemas.c CRM_ASSERT(known_schemas != NULL); known_schemas 193 lib/common/schemas.c memset(known_schemas+last, 0, sizeof(struct schema_s)); known_schemas 194 lib/common/schemas.c known_schemas[last].validator = validator; known_schemas 195 lib/common/schemas.c known_schemas[last].after_transform = after_transform; known_schemas 198 lib/common/schemas.c known_schemas[last].version.v[i] = version->v[i]; known_schemas 204 lib/common/schemas.c known_schemas[last].name = schema_strdup_printf("pacemaker-", *version, ""); known_schemas 207 lib/common/schemas.c schema_scanf(name, "%*[^-]-", known_schemas[last].version, ""); known_schemas 208 lib/common/schemas.c known_schemas[last].name = strdup(name); known_schemas 212 lib/common/schemas.c known_schemas[last].transform = strdup(transform); known_schemas 215 lib/common/schemas.c known_schemas[last].transform_enter = strdup(transform_enter); known_schemas 217 lib/common/schemas.c known_schemas[last].transform_onleave = transform_onleave; known_schemas 221 lib/common/schemas.c known_schemas[last].after_transform = after_transform; known_schemas 223 lib/common/schemas.c if (known_schemas[last].after_transform < 0) { known_schemas 225 lib/common/schemas.c last, known_schemas[last].name); known_schemas 227 lib/common/schemas.c } else if (known_schemas[last].transform) { known_schemas 229 lib/common/schemas.c last, known_schemas[last].name, known_schemas 230 lib/common/schemas.c known_schemas[last].after_transform, known_schemas 231 lib/common/schemas.c known_schemas[last].transform); known_schemas 235 lib/common/schemas.c last, known_schemas[last].name, known_schemas 236 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 610 lib/common/schemas.c known_schemas[method].name); known_schemas 613 lib/common/schemas.c crm_str(file), known_schemas[method].validator); known_schemas 614 lib/common/schemas.c switch (known_schemas[method].validator) { known_schemas 618 lib/common/schemas.c (relaxng_ctx_cache_t **) & (known_schemas[method].cache)); known_schemas 622 lib/common/schemas.c known_schemas[method].validator); known_schemas 716 lib/common/schemas.c known_schemas[lpc].name); known_schemas 717 lib/common/schemas.c crm_info("XML validated against %s", known_schemas[lpc].name); known_schemas 718 lib/common/schemas.c if(known_schemas[lpc].after_transform == 0) { known_schemas 1026 lib/common/schemas.c return known_schemas[version].name; known_schemas 1038 lib/common/schemas.c if (pcmk__str_eq(name, known_schemas[lpc].name, pcmk__str_casei)) { known_schemas 1087 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>", known_schemas 1093 lib/common/schemas.c known_schemas[lpc].name); known_schemas 1097 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>"); known_schemas 1108 lib/common/schemas.c known_schemas[next].name); known_schemas 1120 lib/common/schemas.c next = known_schemas[lpc].after_transform; known_schemas 1124 lib/common/schemas.c crm_trace("Stopping at %s", known_schemas[lpc].name); known_schemas 1129 lib/common/schemas.c known_schemas[lpc].name, lpc, next, max); known_schemas 1132 lib/common/schemas.c } else if (known_schemas[lpc].transform == NULL known_schemas 1140 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name); known_schemas 1146 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name, known_schemas 1147 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1150 lib/common/schemas.c upgrade = apply_upgrade(xml, &known_schemas[lpc], to_logs); known_schemas 1154 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1159 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1168 lib/common/schemas.c known_schemas[lpc].transform); known_schemas 1186 lib/common/schemas.c value ? value : "<none>", known_schemas[*best].name); known_schemas 1187 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name);