if(strcmp(CRM_OP_QUERY, cib_action) == 0) { crm_debug("Querying the CIB"); obj_type_parent = pluralSection(obj_type);
obj_type_parent = cib_pluralSection(obj_type);  if(strcmp(CRM_OP_CIB_QUERY, cib_action) == 0) {
do_work(ll_cluster_t * hb_cluster, const char *xml_text){	/* construct the request */	xmlNodePtr msg_data = NULL;	const char *dest_node = NULL;	gboolean all_is_good = TRUE;	char *obj_type_parent = NULL;		msg_options = create_xml_node(NULL, XML_TAG_OPTIONS);	set_xml_property_copy(msg_options, XML_ATTR_VERBOSE, verbose);	set_xml_property_copy(msg_options, XML_ATTR_TIMEOUT, "0");	if(strcmp(CRM_OP_QUERY, cib_action) == 0) {		crm_debug("Querying the CIB");		obj_type_parent = pluralSection(obj_type);				crm_verbose("Querying the CIB for section: %s",			    obj_type_parent);				set_xml_property_copy(msg_options, XML_ATTR_OP, CRM_OP_QUERY);		if(obj_type_parent != NULL) {			set_xml_property_copy(				msg_options,				XML_ATTR_FILTER_TYPE, obj_type_parent);		}		if(id != NULL) {			set_xml_property_copy(				msg_options, XML_ATTR_FILTER_ID, id);		}				dest_node = status;		crm_verbose("CIB query creation %s",			    msg_data == NULL ? "failed." : "passed.");				sys_to = CRM_SYSTEM_DCIB;			} else if (strcmp(CRM_OP_ERASE, cib_action) == 0) {		set_xml_property_copy(msg_options,				      XML_ATTR_OP,				      CRM_OP_ERASE);				dest_node = status;		crm_trace("CIB Erase op in progress");				sys_to = CRM_SYSTEM_DCIB;			} else if(cib_action != NULL) {		msg_data = handleCibMod(xml_text);		sys_to = CRM_SYSTEM_DCIB;		if(msg_data == NULL)			all_is_good = FALSE;			} else {		crm_err("Unknown options");		all_is_good = FALSE;	}		if(all_is_good == FALSE) {		crm_err("Creation of request failed.  No message to send");		return -1;	}/* send it */	if (crmd_channel == NULL) {		crm_err("The IPC connection is not valid, cannot send anything");		return -1;	}	if(sys_to == NULL) {		if (dest_node != NULL)			sys_to = CRM_SYSTEM_CRMD;		else			sys_to = CRM_SYSTEM_DC;					}			send_ipc_request(		crmd_channel, msg_options, msg_data,		dest_node, sys_to,		crm_system_name, admin_uuid, this_msg_reference);	return 1;}