xmlNodePtr xml_section = findNode(update_command, XML_TAG_CIB); xml_section = findNode(xml_section, section); xmlNodePtr child = xml_section->children;  while(child != NULL) { cl_log(LOG_DEBUG, "#---#---# Performing action %d on (%s=%s).", operation, child->name, ID(child));  if(strcmp(XML_CIB_TAG_NODE, child->name) == 0) { if(operation == CIB_OP_ADD) conditional_add_failure(failed, child, operation, addHaNode(local_cib, child)); else if(operation == CIB_OP_MODIFY) conditional_add_failure(failed, child, operation, updateHaNode(local_cib, child)); else conditional_add_failure(failed, child, operation, delHaNode(local_cib, ID(child))); } if(strcmp(XML_CIB_TAG_RESOURCE, child->name) == 0) { if(operation == CIB_OP_ADD) conditional_add_failure(failed, child, operation, addResource(local_cib, child)); else if(operation == CIB_OP_MODIFY) conditional_add_failure(failed, child, operation, updateResource(local_cib, child)); else conditional_add_failure(failed, child, operation, delResource(local_cib, ID(child))); } if(strcmp(XML_CIB_TAG_CONSTRAINT, child->name) == 0) { if(operation == CIB_OP_ADD) conditional_add_failure(failed, child, operation, addConstraint(local_cib, child)); else if(operation == CIB_OP_MODIFY) conditional_add_failure(failed, child, operation, updateConstraint(local_cib, child)); else conditional_add_failure(failed, child, operation, delConstraint(local_cib, ID(child))); } if(strcmp(XML_CIB_TAG_STATE, child->name) == 0) { if(operation == CIB_OP_ADD) conditional_add_failure(failed, child, operation, addStatus(local_cib, child)); else if(operation == CIB_OP_MODIFY) conditional_add_failure(failed, child, operation, updateStatus(local_cib, child)); else conditional_add_failure(failed, child, operation, delStatus(local_cib, ID(child), INSTANCE(child))); } cl_log(LOG_DEBUG, "#---#---# Action %d on (%s=%s) complete.", operation, child->name, ID(child)); child = child->next; 
const char *node_path[3]; node_path[0] = XML_CIB_TAG_FRAGMENT; node_path[1] = XML_TAG_CIB; node_path[2] = section;  xmlNodePtr xml_section = findDeepNode(update_command, node_path, 3);  if(section == NULL || xml_section == NULL) { cl_log(LOG_ERR, "Section %s not found in message.  CIB update is corrupt, ignoring.", section); return; 
updateList(xmlNodePtr local_cib, xmlNodePtr update_command, xmlNodePtr failed, int operation, const char *section){  xmlNodePtr xml_section = findNode(update_command, XML_TAG_CIB);  xml_section = findNode(xml_section, section);  xmlNodePtr child = xml_section->children;    while(child != NULL)  {      cl_log(LOG_DEBUG, "#---#---# Performing action %d on (%s=%s).", operation, child->name, ID(child));            if(strcmp(XML_CIB_TAG_NODE, child->name) == 0)      {	  if(operation == CIB_OP_ADD)	      conditional_add_failure(failed, child, operation, addHaNode(local_cib, child));	  else if(operation == CIB_OP_MODIFY)	      conditional_add_failure(failed, child, operation, updateHaNode(local_cib, child));	  else 	      conditional_add_failure(failed, child, operation, delHaNode(local_cib, ID(child)));      }      if(strcmp(XML_CIB_TAG_RESOURCE, child->name) == 0)      {	  if(operation == CIB_OP_ADD)	      conditional_add_failure(failed, child, operation, addResource(local_cib, child));	  else if(operation == CIB_OP_MODIFY)	      conditional_add_failure(failed, child, operation, updateResource(local_cib, child));	  else 	      conditional_add_failure(failed, child, operation, delResource(local_cib, ID(child)));      }      if(strcmp(XML_CIB_TAG_CONSTRAINT, child->name) == 0)      {	  if(operation == CIB_OP_ADD)	      conditional_add_failure(failed, child, operation, addConstraint(local_cib, child));	  else if(operation == CIB_OP_MODIFY)	      conditional_add_failure(failed, child, operation, updateConstraint(local_cib, child));	  else 	      conditional_add_failure(failed, child, operation, delConstraint(local_cib, ID(child)));      }      if(strcmp(XML_CIB_TAG_STATE, child->name) == 0)      {	  if(operation == CIB_OP_ADD)	      conditional_add_failure(failed, child, operation, addStatus(local_cib, child));	  else if(operation == CIB_OP_MODIFY)	      conditional_add_failure(failed, child, operation, updateStatus(local_cib, child));	  else 	      conditional_add_failure(failed, child, operation, delStatus(local_cib, ID(child), INSTANCE(child)));      }      cl_log(LOG_DEBUG, "#---#---# Action %d on (%s=%s) complete.", operation, child->name, ID(child));      child = child->next;    }}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/f4d2fcf957c8356f82db6dc54719d7d704bacb16/cibmessages.c/clean/crm/cib/cibmessages.c