pacemaker  1.1.16-94ff4df
Scalable High-Availability cluster resource manager
Functions
schemas.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>
#include <errno.h>
#include <math.h>
#include <sys/stat.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
Include dependency graph for schemas.c:

Go to the source code of this file.

Functions

void xml_log (int priority, const char *fmt,...) G_GNUC_PRINTF(2
 
const char * xml_latest_schema (void)
 
void crm_schema_init (void)
 
void crm_schema_cleanup (void)
 
gboolean validate_xml_verbose (xmlNode *xml_blob)
 
gboolean validate_xml (xmlNode *xml_blob, const char *validation, gboolean to_logs)
 
const char * get_schema_name (int version)
 
int get_schema_version (const char *name)
 
int update_validation (xmlNode **xml_blob, int *best, int max, gboolean transform, gboolean to_logs)
 Try update CIB XML to the highest pacemaker's standard if feasible. More...
 
gboolean cli_config_update (xmlNode **xml, int *best_version, gboolean to_logs)
 

Function Documentation

gboolean cli_config_update ( xmlNode **  xml,
int *  best_version,
gboolean  to_logs 
)

Definition at line 853 of file schemas.c.

void crm_schema_cleanup ( void  )

Definition at line 462 of file schemas.c.

void crm_schema_init ( void  )

Definition at line 241 of file schemas.c.

const char* get_schema_name ( int  version)

Definition at line 684 of file schemas.c.

int get_schema_version ( const char *  name)

Definition at line 693 of file schemas.c.

int update_validation ( xmlNode **  xml_blob,
int *  best,
int  max,
gboolean  transform,
gboolean  to_logs 
)

Try update CIB XML to the highest pacemaker's standard if feasible.

"Update" means either actively employ XSLT-based transformation(s) (if intermediate product to transform valid per its declared schema version, transformation available, proceeded successfully with a result valid per expectated newer schema version), or just try to bump the marked validating schema until all gradually rising schema versions attested or the first such attempt subsequently fails to validate. Which of the two styles will be used depends on transform parameter (positive/negative, respectively).

Parameters

Definition at line 710 of file schemas.c.

gboolean validate_xml ( xmlNode *  xml_blob,
const char *  validation,
gboolean  to_logs 
)

Definition at line 601 of file schemas.c.

gboolean validate_xml_verbose ( xmlNode *  xml_blob)

Definition at line 575 of file schemas.c.

const char* xml_latest_schema ( void  )

Definition at line 104 of file schemas.c.

void void xml_log ( int  priority,
const char *  fmt,
  ... 
)

Definition at line 64 of file schemas.c.