xmlNodePtr command, iter, answer, options;
xmlNodePtr command, tmp1, tmp2, answer, options;
void send_cib_status_update(xmlNodePtr update, gboolean do_delete){	xmlNodePtr command, iter, answer, options;		iter = create_xml_node(NULL, "node_state");	set_xml_property_copy(iter, XML_ATTR_ID, fsa_our_uname);	iter = create_xml_node(iter, "lrm");		command = create_cib_fragment(iter, "status");	if(do_delete) {		process_cib_request(CRM_OPERATION_DELETE, NULL, command);	}		add_node_copy(iter, update);	options = create_xml_node(NULL, XML_TAG_OPTIONS);	set_xml_property_copy(options, XML_ATTR_VERBOSE, "true");		// set verbose	answer = process_cib_request(CRM_OPERATION_UPDATE, options, command);		free_xml(command); // takes iter with it		// distribute the answer		if(AM_I_DC) {				xmlNodePtr new_options =			set_xml_attr(NULL, XML_TAG_OPTIONS,				     XML_ATTR_FILTER_TYPE, "status",				     TRUE);				free_xml(answer);		answer = process_cib_request(CRM_OPERATION_BUMP,					     new_options,					     NULL);				send_request(NULL, answer, CRM_OPERATION_REPLACE,			     NULL, CRM_SYSTEM_CRMD);				free_xml(new_options);					} else {		send_request(NULL, answer,			     CRM_OPERATION_UPDATE,			     NULL, CRM_SYSTEM_DCIB);			}	free_xml(answer);}