xmlNodePtr tmp1 = create_xml_node(NULL, XML_CIB_TAG_STATE);  set_node_tstamp(tmp1); set_xml_property_copy(tmp1, XML_ATTR_ID, fsa_our_uname); set_xml_property_copy(tmp1, "source",    fsa_our_uname); set_xml_property_copy(tmp1, "state",     "active"); set_xml_property_copy(tmp1, "exp_state",     "active"); set_xml_property_copy(tmp1, "is_dc",     "true");  xmlNodePtr fragment = create_cib_fragment(tmp1, NULL);  send_request(NULL, fragment, CRM_OPERATION_UPDATE, NULL, CRM_SYSTEM_DCIB);  free_xml(fragment); free_xml(tmp1);
do_dc_takeover(long long action,	       enum crmd_fsa_cause cause,	       enum crmd_fsa_state cur_state,	       enum crmd_fsa_input current_input,	       void *data){	FNIN();	CRM_DEBUG("################## Taking over the DC ##################");	set_bit_inplace(&fsa_input_register, R_THE_DC);	CRM_DEBUG("Am I the DC? %s", AM_I_DC?"yes":"no");		set_bit_inplace(&fsa_input_register, R_JOIN_OK);	set_bit_inplace(&fsa_input_register, R_INVOKE_PE);		clear_bit_inplace(&fsa_input_register, R_CIB_DONE);	clear_bit_inplace(&fsa_input_register, R_HAVE_CIB);	startTimer(dc_heartbeat);		FNRET(I_NULL);}