1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__SCHEMAS_INTERNAL__H
11 #define PCMK__SCHEMAS_INTERNAL__H
12
13 #include <glib.h>
14 #include <libxml/tree.h>
15
16 void crm_schema_init(void);
17 void crm_schema_cleanup(void);
18
19 void pcmk__load_schemas_from_dir(const char *dir);
20 void pcmk__sort_schemas(void);
21 GList *pcmk__schema_files_later_than(const char *name);
22 void pcmk__build_schema_xml_node(xmlNode *parent, const char *name,
23 GList **already_included);
24 const char *pcmk__remote_schema_dir(void);
25 GList *pcmk__get_schema(const char *name);
26 const char *pcmk__highest_schema_name(void);
27 int pcmk__cmp_schemas_by_name(const char *schema1_name,
28 const char *schema2_name);
29 bool pcmk__validate_xml(xmlNode *xml_blob, const char *validation,
30 xmlRelaxNGValidityErrorFunc error_handler,
31 void *error_handler_context);
32 bool pcmk__configured_schema_validates(xmlNode *xml);
33 int pcmk__update_schema(xmlNode **xml, const char *max_schema_name,
34 bool transform, bool to_logs);
35 void pcmk__warn_if_schema_deprecated(const char *schema);
36
37 int pcmk__update_configured_schema(xmlNode **xml, bool to_logs);
38
39 #endif