schema 41 include/crm/common/schemas_internal.h void pcmk__warn_if_schema_deprecated(const char *schema); schema 487 lib/cib/cib_utils.c const char *schema = crm_element_value(scratch, PCMK_XA_VALIDATE_WITH); schema 489 lib/cib/cib_utils.c if (schema == NULL) { schema 494 lib/cib/cib_utils.c pcmk__warn_if_schema_deprecated(schema); schema 499 lib/cib/cib_utils.c if (pcmk__cmp_schemas_by_name(schema, "pacemaker-1.2") >= 0) { schema 136 lib/common/schemas.c pcmk__schema_t *schema = iter->data; schema 142 lib/common/schemas.c if (schema->version.v[0] < highest_schema->version.v[0]) { schema 228 lib/common/schemas.c pcmk__schema_t *schema = NULL; schema 230 lib/common/schemas.c schema = pcmk__assert_alloc(1, sizeof(pcmk__schema_t)); schema 232 lib/common/schemas.c schema->validator = validator; schema 233 lib/common/schemas.c schema->version.v[0] = version->v[0]; schema 234 lib/common/schemas.c schema->version.v[1] = version->v[1]; schema 235 lib/common/schemas.c schema->transforms = transforms; schema 239 lib/common/schemas.c schema->name = schema_strdup_printf("pacemaker-", *version, ""); schema 241 lib/common/schemas.c schema->name = pcmk__str_copy(name); schema 244 lib/common/schemas.c known_schemas = g_list_prepend(known_schemas, schema); schema 577 lib/common/schemas.c pcmk__schema_t *schema = iter->data; schema 579 lib/common/schemas.c crm_debug("Loaded schema %d: %s", schema_index, schema->name); schema 580 lib/common/schemas.c schema->schema_index = schema_index++; schema 672 lib/common/schemas.c pcmk__schema_t *schema = data; schema 675 lib/common/schemas.c switch (schema->validator) { schema 680 lib/common/schemas.c ctx = (relaxng_ctx_cache_t *) schema->cache; schema 698 lib/common/schemas.c schema->cache = NULL; schema 702 lib/common/schemas.c free(schema->name); schema 703 lib/common/schemas.c g_list_free_full(schema->transforms, free); schema 704 lib/common/schemas.c free(schema); schema 738 lib/common/schemas.c pcmk__schema_t *schema = iter->data; schema 740 lib/common/schemas.c if (pcmk__str_eq(name, schema->name, pcmk__str_none)) { schema 779 lib/common/schemas.c validate_with(xmlNode *xml, pcmk__schema_t *schema, schema 787 lib/common/schemas.c if (schema == NULL) { schema 791 lib/common/schemas.c if (schema->validator == pcmk__schema_validator_none) { schema 796 lib/common/schemas.c schema->name); schema 799 lib/common/schemas.c pcmk__s(file, "missing schema"), schema->validator); schema 800 lib/common/schemas.c switch (schema->validator) { schema 802 lib/common/schemas.c cache = (relaxng_ctx_cache_t **) &(schema->cache); schema 806 lib/common/schemas.c crm_err("Unknown validator type: %d", schema->validator); schema 815 lib/common/schemas.c validate_with_silent(xmlNode *xml, pcmk__schema_t *schema) schema 819 lib/common/schemas.c rc = validate_with(xml, schema, (xmlRelaxNGValidityErrorFunc) xml_log, GUINT_TO_POINTER(LOG_ERR)); schema 830 lib/common/schemas.c pcmk__schema_t *schema = NULL; schema 847 lib/common/schemas.c schema = entry->data; schema 848 lib/common/schemas.c return validate_with(xml_blob, schema, error_handler, schema 1061 lib/common/schemas.c pcmk__schema_t *schema = g_list_nth_data(known_schemas, schema_index); schema 1069 lib/common/schemas.c pcmk__assert((schema != NULL) && (upgraded_schema != NULL)); schema 1075 lib/common/schemas.c for (GList *iter = schema->transforms; iter != NULL; iter = iter->next) { schema 1080 lib/common/schemas.c schema->name, upgraded_schema->name, transform); schema 1101 lib/common/schemas.c schema->name, upgraded_schema->name); schema 1108 lib/common/schemas.c schema->name, upgraded_schema->name); schema 1277 lib/common/schemas.c pcmk__schema_t *schema = NULL; schema 1286 lib/common/schemas.c schema = (entry == NULL)? NULL : entry->data; schema 1288 lib/common/schemas.c if ((schema == NULL) schema 1289 lib/common/schemas.c || (schema->schema_index < x_0_schema->schema_index)) { schema 1292 lib/common/schemas.c if ((schema == NULL) schema 1293 lib/common/schemas.c || (schema->schema_index < original_schema->schema_index)) { schema 1336 lib/common/schemas.c if (schema->schema_index < xml_latest_schema_index()) { schema 1341 lib/common/schemas.c original_schema->name, schema->name); schema 1346 lib/common/schemas.c original_schema->name, schema->name); schema 1393 lib/common/schemas.c pcmk__schema_t *schema = iter->data; schema 1395 lib/common/schemas.c if (schema_cmp(ver, schema->version) != -1) { schema 1399 lib/common/schemas.c for (GList *iter2 = g_list_last(schema->transforms); iter2 != NULL; schema 1407 lib/common/schemas.c lst = g_list_prepend(lst, crm_strdup_printf("%s.rng", schema->name)); schema 1565 lib/common/schemas.c pcmk__warn_if_schema_deprecated(const char *schema) schema 1570 lib/common/schemas.c if (pcmk__str_eq(schema, PCMK_VALUE_NONE, pcmk__str_none)) { schema 1574 lib/common/schemas.c "to use a supported schema)", schema); schema 1595 lib/common/schemas.c pcmk__schema_t *schema = (entry == NULL)? NULL : entry->data; schema 1597 lib/common/schemas.c *best_version = (schema == NULL)? -1 : schema->schema_index; schema 40 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c pcmk__schema_t *schema = NULL; schema 45 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c schema = entry->data; schema 46 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_non_null(schema); schema 48 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_int_equal(schema->schema_index, schema_index); schema 49 lib/common/tests/schemas/pcmk__find_x_0_schema_test.c assert_string_equal(schema->name, schema_name); schema 37 lib/common/tests/schemas/pcmk__get_schema_test.c pcmk__schema_t *schema = NULL; schema 42 lib/common/tests/schemas/pcmk__get_schema_test.c schema = schema_entry->data; schema 43 lib/common/tests/schemas/pcmk__get_schema_test.c assert_non_null(schema); schema 45 lib/common/tests/schemas/pcmk__get_schema_test.c assert_int_equal(schema->schema_index, expected_index); schema 117 lib/common/tests/schemas/pcmk__schema_init_test.c pcmk__schema_t *schema = NULL; schema 122 lib/common/tests/schemas/pcmk__schema_init_test.c schema = entry->data; schema 123 lib/common/tests/schemas/pcmk__schema_init_test.c assert_non_null(schema); schema 125 lib/common/tests/schemas/pcmk__schema_init_test.c assert_int_equal(schema_index, schema->schema_index);