pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Functions
schemas_internal.h File Reference
#include <glib.h>
#include <libxml/tree.h>
Include dependency graph for schemas_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void crm_schema_init (void)
 
void crm_schema_cleanup (void)
 
void pcmk__load_schemas_from_dir (const char *dir)
 
void pcmk__sort_schemas (void)
 
GList * pcmk__schema_files_later_than (const char *name)
 
void pcmk__build_schema_xml_node (xmlNode *parent, const char *name, GList **already_included)
 
const char * pcmk__remote_schema_dir (void)
 
GList * pcmk__get_schema (const char *name)
 
const char * pcmk__highest_schema_name (void)
 
int pcmk__cmp_schemas_by_name (const char *schema1_name, const char *schema2_name)
 
bool pcmk__validate_xml (xmlNode *xml_blob, const char *validation, xmlRelaxNGValidityErrorFunc error_handler, void *error_handler_context)
 
bool pcmk__configured_schema_validates (xmlNode *xml)
 
int pcmk__update_schema (xmlNode **xml, const char *max_schema_name, bool transform, bool to_logs)
 Update CIB XML to latest schema that validates it. More...
 
void pcmk__warn_if_schema_deprecated (const char *schema)
 
int pcmk__update_configured_schema (xmlNode **xml, bool to_logs)
 Update XML from its configured schema to the latest major series. More...
 

Function Documentation

◆ crm_schema_cleanup()

void crm_schema_cleanup ( void  )

Definition at line 643 of file schemas.c.

◆ crm_schema_init()

void crm_schema_init ( void  )

Definition at line 470 of file schemas.c.

◆ pcmk__build_schema_xml_node()

void pcmk__build_schema_xml_node ( xmlNode *  parent,
const char *  name,
GList **  already_included 
)

Definition at line 1552 of file schemas.c.

◆ pcmk__cmp_schemas_by_name()

int pcmk__cmp_schemas_by_name ( const char *  schema1_name,
const char *  schema2_name 
)

Definition at line 691 of file schemas.c.

◆ pcmk__configured_schema_validates()

bool pcmk__configured_schema_validates ( xmlNode *  xml)

Definition at line 809 of file schemas.c.

◆ pcmk__get_schema()

GList* pcmk__get_schema ( const char *  name)

Definition at line 663 of file schemas.c.

◆ pcmk__highest_schema_name()

const char* pcmk__highest_schema_name ( void  )

Definition at line 97 of file schemas.c.

◆ pcmk__load_schemas_from_dir()

void pcmk__load_schemas_from_dir ( const char *  dir)

Definition at line 384 of file schemas.c.

◆ pcmk__remote_schema_dir()

const char* pcmk__remote_schema_dir ( void  )

Definition at line 1571 of file schemas.c.

◆ pcmk__schema_files_later_than()

GList* pcmk__schema_files_later_than ( const char *  name)

Definition at line 1395 of file schemas.c.

◆ pcmk__sort_schemas()

void pcmk__sort_schemas ( void  )

Definition at line 457 of file schemas.c.

◆ pcmk__update_configured_schema()

int pcmk__update_configured_schema ( xmlNode **  xml,
bool  to_logs 
)

Update XML from its configured schema to the latest major series.

Parameters
[in,out]xmlXML to update
[in]to_logsIf false, certain validation errors will be sent to stderr rather than logged
Returns
Standard Pacemaker return code

Definition at line 1257 of file schemas.c.

◆ pcmk__update_schema()

int pcmk__update_schema ( xmlNode **  xml,
const char *  max_schema_name,
bool  transform,
bool  to_logs 
)

Update CIB XML to latest schema that validates it.

Parameters
[in,out]xmlXML to update (may be freed and replaced after being transformed)
[in]max_schema_nameIf not NULL, do not update xml to any schema later than this one
[in]transformIf false, do not update xml to any schema that requires an XSL transform
[in]to_logsIf false, certain validation errors will be sent to stderr rather than logged
Returns
Standard Pacemaker return code

Definition at line 1141 of file schemas.c.

◆ pcmk__validate_xml()

bool pcmk__validate_xml ( xmlNode *  xml_blob,
const char *  validation,
xmlRelaxNGValidityErrorFunc  error_handler,
void *  error_handler_context 
)

Definition at line 757 of file schemas.c.

◆ pcmk__warn_if_schema_deprecated()

void pcmk__warn_if_schema_deprecated ( const char *  schema)

Definition at line 1589 of file schemas.c.