| 2025 | } |
| 2026 | |
| 2027 | static void |
| 2028 | filter_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" */ |
| 2047 | static char * |
no test coverage detected