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

Function filter_xml

lib/common/xml.c:2027–2044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2025}
2026
2027static void
2028filter_xml(xmlNode *data, filter_t *filter, int filter_len, gboolean recursive)
2029{
2030 int lpc = 0;
2031 xmlNode *child = NULL;
2032
2033 for(lpc = 0; lpc < filter_len; lpc++) {
2034 xml_remove_prop(data, filter[lpc].string);
2035 }
2036
2037 if(recursive == FALSE || filter_len == 0) {
2038 return;
2039 }
2040
2041 for(child = __xml_first_child(data); child != NULL; child = __xml_next(child)) {
2042 filter_xml(child, filter, filter_len, recursive);
2043 }
2044}
2045
2046/* "c048eae664dba840e1d2060f00299e9d" */
2047static char *

Callers 2

calculate_xml_digest_v1Function · 0.85
calculate_xml_digest_v2Function · 0.85

Calls 3

xml_remove_propFunction · 0.85
__xml_first_childFunction · 0.85
__xml_nextFunction · 0.85

Tested by

no test coverage detected