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

Function get_schema_path

lib/common/xml.c:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120};
121
122static char *get_schema_path(const char *file)
123{
124 static const char *base = NULL;
125 if(base == NULL) {
126 base = getenv("PCMK_schema_directory");
127 }
128 if(base == NULL || strlen(base) == 0) {
129 base = CRM_DTD_DIRECTORY;
130 }
131 return crm_concat(base, file, '/');
132}
133
134int print_spaces(char *buffer, int spaces, int max);
135

Callers 2

validate_withFunction · 0.85
apply_transformationFunction · 0.85

Calls 1

crm_concatFunction · 0.85

Tested by

no test coverage detected