schema             35 include/crm/common/schemas_internal.h void pcmk__warn_if_schema_deprecated(const char *schema);
schema            400 lib/cib/cib_file.c         const char *schema = crm_element_value(root, PCMK_XA_VALIDATE_WITH);
schema            402 lib/cib/cib_file.c         crm_err("CIB does not validate against %s, or that schema is unknown", schema);
schema            588 lib/cib/cib_utils.c         const char *schema = crm_element_value(scratch, PCMK_XA_VALIDATE_WITH);
schema            591 lib/cib/cib_utils.c         pcmk__warn_if_schema_deprecated(schema);
schema            596 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           1023 lib/common/schemas.c     pcmk__schema_t *schema = g_list_nth_data(known_schemas, schema_index);
schema           1033 lib/common/schemas.c     CRM_ASSERT((schema != NULL) && (upgraded_schema != NULL));
schema           1039 lib/common/schemas.c     transform_onleave = schema->transform_onleave;
schema           1040 lib/common/schemas.c     if (schema->transform_enter != NULL) {
schema           1043 lib/common/schemas.c                   schema->name, upgraded_schema->name, schema->transform_enter);
schema           1044 lib/common/schemas.c         upgrade = apply_transformation(xml, schema->transform_enter, to_logs);
schema           1048 lib/common/schemas.c                      schema->transform_enter);
schema           1058 lib/common/schemas.c               schema->name, upgraded_schema->name, schema->transform);
schema           1059 lib/common/schemas.c     final = apply_transformation(xml, schema->transform, to_logs);
schema           1068 lib/common/schemas.c         CRM_ASSERT(schema->transform_enter != NULL);
schema           1069 lib/common/schemas.c         transform_leave = strdup(schema->transform_enter);
schema           1074 lib/common/schemas.c                   schema->name, upgraded_schema->name, transform_leave);
schema           1095 lib/common/schemas.c                 schema->name, upgraded_schema->name, schema->transform);
schema           1102 lib/common/schemas.c              schema->name, upgraded_schema->name);
schema           1285 lib/common/schemas.c         pcmk__schema_t *schema = NULL;
schema           1294 lib/common/schemas.c         schema = (entry == NULL)? NULL : entry->data;
schema           1296 lib/common/schemas.c         if ((schema == NULL)
schema           1297 lib/common/schemas.c             || (schema->schema_index < x_0_schema->schema_index)) {
schema           1300 lib/common/schemas.c             if ((orig_version == -1) || (schema == NULL)
schema           1301 lib/common/schemas.c                 || (schema->schema_index < orig_version)) {
schema           1346 lib/common/schemas.c             if (schema->schema_index < xml_latest_schema_index()) {
schema           1352 lib/common/schemas.c                                       schema->name);
schema           1358 lib/common/schemas.c                          schema->name);
schema           1406 lib/common/schemas.c         pcmk__schema_t *schema = iter->data;
schema           1409 lib/common/schemas.c         if (schema_cmp(ver, schema->version) != -1) {
schema           1413 lib/common/schemas.c         s = crm_strdup_printf("%s.rng", schema->name);
schema           1416 lib/common/schemas.c         if (schema->transform != NULL) {
schema           1417 lib/common/schemas.c             char *xform = crm_strdup_printf("%s.xsl", schema->transform);
schema           1421 lib/common/schemas.c         if (schema->transform_enter != NULL) {
schema           1422 lib/common/schemas.c             char *enter = crm_strdup_printf("%s.xsl", schema->transform_enter);
schema           1426 lib/common/schemas.c             if (schema->transform_onleave) {
schema           1589 lib/common/schemas.c pcmk__warn_if_schema_deprecated(const char *schema)
schema           1591 lib/common/schemas.c     if ((schema == NULL) ||
schema           1592 lib/common/schemas.c         pcmk__strcase_any_of(schema, "pacemaker-next", PCMK_VALUE_NONE, NULL)) {
schema           1596 lib/common/schemas.c                           "to use a supported schema)", pcmk__s(schema, ""));
schema           1614 lib/common/schemas.c     pcmk__schema_t *schema = g_list_nth_data(known_schemas, version);
schema           1616 lib/common/schemas.c     return (schema != NULL)? schema->name : "unknown";
schema           1629 lib/common/schemas.c         pcmk__schema_t *schema = iter->data;
schema           1631 lib/common/schemas.c         if (pcmk__str_eq(name, schema->name, pcmk__str_casei)) {
schema           1740 lib/common/schemas.c             pcmk__schema_t *schema = (entry == NULL)? NULL : entry->data;
schema           1742 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);