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

Function copy_in_properties

lib/common/xml.c:218–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void
219copy_in_properties(xmlNode* target, xmlNode *src)
220{
221 if(src == NULL) {
222 crm_warn("No node to copy properties from");
223
224 } else if (target == NULL) {
225 crm_err("No node to copy properties into");
226
227 } else {
228 xmlAttrPtr pIter = NULL;
229 for(pIter = crm_first_attr(src); pIter != NULL; pIter = pIter->next) {
230 const char *p_name = (const char *)pIter->name;
231 const char *p_value = crm_attr_value(pIter);
232
233 expand_plus_plus(target, p_name, p_value);
234 }
235 }
236
237 return;
238}
239
240void fix_plus_plus_recursive(xmlNode* target)
241{

Callers 9

attach_cib_generationFunction · 0.85
cib_get_generationFunction · 0.85
cib_process_queryFunction · 0.85
cib_process_eraseFunction · 0.85
update_cib_objectFunction · 0.85
cib_process_xpathFunction · 0.85
add_xml_objectFunction · 0.85
create_fake_resourceFunction · 0.85
join_query_callbackFunction · 0.85

Calls 3

crm_first_attrFunction · 0.85
crm_attr_valueFunction · 0.85
expand_plus_plusFunction · 0.85

Tested by

no test coverage detected