MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / get_schema_version

Function get_schema_version

lib/common/xml.c:2579–2588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2577
2578
2579int get_schema_version(const char *name)
2580{
2581 int lpc = 0;
2582 for(; lpc < all_schemas; lpc++) {
2583 if(safe_str_eq(name, known_schemas[lpc].name)) {
2584 return lpc;
2585 }
2586 }
2587 return -1;
2588}
2589
2590/* set which validation to use */
2591#include <crm/cib.h>

Callers 4

cib_process_commandFunction · 0.85
cib_process_upgradeFunction · 0.85
update_validationFunction · 0.85
cli_config_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected