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

Function first_named_child

lib/common/xml.c:2250–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2248}
2249
2250xmlNode *first_named_child(xmlNode *parent, const char *name)
2251{
2252 xmlNode *match = NULL;
2253 for(match = __xml_first_child(parent); match != NULL; match = __xml_next(match)) {
2254 /*
2255 * name == NULL gives first child regardless of name; this is
2256 * semantically incorrect in this funciton, but may be necessary
2257 * due to prior use of xml_child_iter_filter
2258 */
2259 if(name == NULL || strcmp((const char*)match->name, name) == 0) {
2260 return match;
2261 }
2262 }
2263 return NULL;
2264}
2265
2266#if 0
2267static void relaxng_invalid_stderr(void * userData, xmlErrorPtr error)

Callers 10

print_cts_constraintsFunction · 0.85
inject_transient_attrFunction · 0.85
inject_resourceFunction · 0.85
exec_rsc_actionFunction · 0.85
mainFunction · 0.85
cib_prepare_commonFunction · 0.85
get_message_xmlFunction · 0.85
convert_graph_actionFunction · 0.85
test_date_expressionFunction · 0.85
unpack_constraintsFunction · 0.85

Calls 2

__xml_first_childFunction · 0.85
__xml_nextFunction · 0.85

Tested by 1

test_date_expressionFunction · 0.68