schema             35 include/crm/common/schemas_internal.h void pcmk__warn_if_schema_deprecated(const char *schema);
schema            404 lib/cib/cib_file.c         const char *schema = crm_element_value(root, PCMK_XA_VALIDATE_WITH);
schema            406 lib/cib/cib_file.c         crm_err("CIB does not validate against %s, or that schema is unknown", schema);
schema            589 lib/cib/cib_utils.c         const char *schema = crm_element_value(scratch, PCMK_XA_VALIDATE_WITH);
schema            592 lib/cib/cib_utils.c         pcmk__warn_if_schema_deprecated(schema);
schema            597 lib/cib/cib_utils.c         if (pcmk__cmp_schemas_by_name(schema, "pacemaker-1.2") >= 0) {
schema            132 lib/common/schemas.c         pcmk__schema_t *schema = iter->data;
schema            138 lib/common/schemas.c         if (schema->version.v[0] < highest_schema->version.v[0]) {
schema            227 lib/common/schemas.c     pcmk__schema_t *schema = NULL;
schema            229 lib/common/schemas.c     schema = pcmk__assert_alloc(1, sizeof(pcmk__schema_t));
schema            231 lib/common/schemas.c     schema->validator = validator;
schema            232 lib/common/schemas.c     schema->version.v[0] = version->v[0];
schema            233 lib/common/schemas.c     schema->version.v[1] = version->v[1];
schema            234 lib/common/schemas.c     schema->transform_onleave = transform_onleave;
schema            238 lib/common/schemas.c         schema->name = schema_strdup_printf("pacemaker-", *version, "");
schema            240 lib/common/schemas.c         schema->name = pcmk__str_copy(name);
schema            244 lib/common/schemas.c         schema->transform = pcmk__str_copy(transform);
schema            248 lib/common/schemas.c         schema->transform_enter = pcmk__str_copy(transform_enter);
schema            251 lib/common/schemas.c     known_schemas = g_list_prepend(known_schemas, schema);
schema            502 lib/common/schemas.c             pcmk__schema_t *schema = iter->data;
schema            504 lib/common/schemas.c             if (schema->transform == NULL) {
schema            505 lib/common/schemas.c                 crm_debug("Loaded schema %d: %s", schema_index, schema->name);
schema            508 lib/common/schemas.c                           schema_index, schema->name, schema->transform);
schema            510 lib/common/schemas.c             schema->schema_index = schema_index++;
schema            602 lib/common/schemas.c     pcmk__schema_t *schema = data;
schema            605 lib/common/schemas.c     switch (schema->validator) {
schema            610 lib/common/schemas.c             ctx = (relaxng_ctx_cache_t *) schema->cache;
schema            628 lib/common/schemas.c             schema->cache = NULL;
schema            632 lib/common/schemas.c     free(schema->name);
schema            633 lib/common/schemas.c     free(schema->transform);
schema            634 lib/common/schemas.c     free(schema->transform_enter);
schema            635 lib/common/schemas.c     free(schema);
schema            670 lib/common/schemas.c         pcmk__schema_t *schema = iter->data;
schema            672 lib/common/schemas.c         if (pcmk__str_eq(name, schema->name, pcmk__str_casei)) {
schema            711 lib/common/schemas.c validate_with(xmlNode *xml, pcmk__schema_t *schema,
schema            719 lib/common/schemas.c     if (schema == NULL) {
schema            723 lib/common/schemas.c     if (schema->validator == pcmk__schema_validator_none) {
schema            728 lib/common/schemas.c                                    schema->name);
schema            731 lib/common/schemas.c               pcmk__s(file, "missing schema"), schema->validator);
schema            732 lib/common/schemas.c     switch (schema->validator) {
schema            734 lib/common/schemas.c             cache = (relaxng_ctx_cache_t **) &(schema->cache);
schema            738 lib/common/schemas.c             crm_err("Unknown validator type: %d", schema->validator);
schema            747 lib/common/schemas.c validate_with_silent(xmlNode *xml, pcmk__schema_t *schema)
schema            751 lib/common/schemas.c     rc = validate_with(xml, schema, (xmlRelaxNGValidityErrorFunc) xml_log, GUINT_TO_POINTER(LOG_ERR));
schema            762 lib/common/schemas.c     pcmk__schema_t *schema = NULL;
schema            776 lib/common/schemas.c             schema = entry->data;
schema            777 lib/common/schemas.c             if (validate_with(xml_blob, schema, NULL, NULL)) {
schema            779 lib/common/schemas.c                 crm_xml_add(xml_blob, PCMK_XA_VALIDATE_WITH, schema->name);
schema            780 lib/common/schemas.c                 crm_info("XML validated against %s", schema->name);
schema            795 lib/common/schemas.c     schema = entry->data;
schema            796 lib/common/schemas.c     return validate_with(xml_blob, schema, error_handler,
schema           1026 lib/common/schemas.c     pcmk__schema_t *schema = g_list_nth_data(known_schemas, schema_index);
schema           1036 lib/common/schemas.c     pcmk__assert((schema != NULL) && (upgraded_schema != NULL));
schema           1042 lib/common/schemas.c     transform_onleave = schema->transform_onleave;
schema           1043 lib/common/schemas.c     if (schema->transform_enter != NULL) {
schema           1046 lib/common/schemas.c                   schema->name, upgraded_schema->name, schema->transform_enter);
schema           1047 lib/common/schemas.c         upgrade = apply_transformation(xml, schema->transform_enter, to_logs);
schema           1051 lib/common/schemas.c                      schema->transform_enter);
schema           1061 lib/common/schemas.c               schema->name, upgraded_schema->name, schema->transform);
schema           1062 lib/common/schemas.c     final = apply_transformation(xml, schema->transform, to_logs);
schema           1071 lib/common/schemas.c         pcmk__assert(schema->transform_enter != NULL);
schema           1072 lib/common/schemas.c         transform_leave = strdup(schema->transform_enter);
schema           1077 lib/common/schemas.c                   schema->name, upgraded_schema->name, transform_leave);
schema           1101 lib/common/schemas.c                 schema->name, upgraded_schema->name, schema->transform);
schema           1108 lib/common/schemas.c              schema->name, upgraded_schema->name);
schema           1291 lib/common/schemas.c         pcmk__schema_t *schema = NULL;
schema           1300 lib/common/schemas.c         schema = (entry == NULL)? NULL : entry->data;
schema           1302 lib/common/schemas.c         if ((schema == NULL)
schema           1303 lib/common/schemas.c             || (schema->schema_index < x_0_schema->schema_index)) {
schema           1306 lib/common/schemas.c             if ((orig_version == -1) || (schema == NULL)
schema           1307 lib/common/schemas.c                 || (schema->schema_index < orig_version)) {
schema           1352 lib/common/schemas.c             if (schema->schema_index < xml_latest_schema_index()) {
schema           1358 lib/common/schemas.c                                       schema->name);
schema           1364 lib/common/schemas.c                          schema->name);
schema           1412 lib/common/schemas.c         pcmk__schema_t *schema = iter->data;
schema           1415 lib/common/schemas.c         if (schema_cmp(ver, schema->version) != -1) {
schema           1419 lib/common/schemas.c         s = crm_strdup_printf("%s.rng", schema->name);
schema           1422 lib/common/schemas.c         if (schema->transform != NULL) {
schema           1423 lib/common/schemas.c             char *xform = crm_strdup_printf("%s.xsl", schema->transform);
schema           1427 lib/common/schemas.c         if (schema->transform_enter != NULL) {
schema           1428 lib/common/schemas.c             char *enter = crm_strdup_printf("%s.xsl", schema->transform_enter);
schema           1432 lib/common/schemas.c             if (schema->transform_onleave) {
schema           1595 lib/common/schemas.c pcmk__warn_if_schema_deprecated(const char *schema)
schema           1597 lib/common/schemas.c     if ((schema == NULL) ||
schema           1598 lib/common/schemas.c         pcmk__strcase_any_of(schema, "pacemaker-next", PCMK_VALUE_NONE, NULL)) {
schema           1602 lib/common/schemas.c                           "to use a supported schema)", pcmk__s(schema, ""));
schema           1620 lib/common/schemas.c     pcmk__schema_t *schema = g_list_nth_data(known_schemas, version);
schema           1622 lib/common/schemas.c     return (schema != NULL)? schema->name : "unknown";
schema           1635 lib/common/schemas.c         pcmk__schema_t *schema = iter->data;
schema           1637 lib/common/schemas.c         if (pcmk__str_eq(name, schema->name, pcmk__str_casei)) {
schema           1746 lib/common/schemas.c             pcmk__schema_t *schema = (entry == NULL)? NULL : entry->data;
schema           1748 lib/common/schemas.c             *best_version = (schema == NULL)? -1 : schema->schema_index;
schema            117 lib/common/tests/schemas/crm_schema_init_test.c     pcmk__schema_t *schema = NULL;
schema            122 lib/common/tests/schemas/crm_schema_init_test.c     schema = entry->data;
schema            123 lib/common/tests/schemas/crm_schema_init_test.c     assert_non_null(schema);
schema            125 lib/common/tests/schemas/crm_schema_init_test.c     assert_int_equal(schema_index, 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);