mUpnpXmlNode *mupnp_xml_node_getrootnode(mUpnpXmlNode *node) { mUpnpXmlNode *rootNode; mUpnpXmlNode *parentNode; mupnp_log_debug_l4("Entering...\n"); rootNode = NULL; parentNode = mupnp_xml_node_getparentnode(node); while (parentNode != NULL) { rootNode = parentNode; parentNode = mupnp_xml_node_getparentnode(rootNode); } mupnp_log_debug_l4("Leaving...\n"); return rootNode; }
static void XMLCALL mupnp_expat_element_end(void* userData, const char* el) { mUpnpExpatData* expatData; mupnp_log_debug_l4("Entering...\n"); expatData = (mUpnpExpatData*)userData; #if defined DEBUG_XML //printf("%8x XML end %s\n",userData,el); --indent; #endif //memdiags_memlist_report_unmarkedsize(); if (expatData->currNode != NULL) expatData->currNode = mupnp_xml_node_getparentnode(expatData->currNode); mupnp_log_debug_l4("Leaving...\n"); }