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

Function fix_plus_plus_recursive

lib/common/xml.c:240–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void fix_plus_plus_recursive(xmlNode* target)
241{
242 /* TODO: Remove recursion and use xpath searches for value++ */
243 xmlNode *child = NULL;
244 xmlAttrPtr pIter = NULL;
245 for(pIter = crm_first_attr(target); pIter != NULL; pIter = pIter->next) {
246 const char *p_name = (const char *)pIter->name;
247 const char *p_value = crm_attr_value(pIter);
248
249 expand_plus_plus(target, p_name, p_value);
250 }
251 for(child = __xml_first_child(target); child != NULL; child = __xml_next(child)) {
252 fix_plus_plus_recursive(child);
253 }
254}
255
256
257void

Callers 1

cib_perform_opFunction · 0.85

Calls 5

crm_first_attrFunction · 0.85
crm_attr_valueFunction · 0.85
expand_plus_plusFunction · 0.85
__xml_first_childFunction · 0.85
__xml_nextFunction · 0.85

Tested by

no test coverage detected