send_ipc_message(IPC_Channel *ipc_client, HA_Message *msg)
crm_send_ipc_message(IPC_Channel *ipc_client, HA_Message *msg, gboolean server)
send_ipc_message(IPC_Channel *ipc_client, HA_Message *msg){	gboolean all_is_good = TRUE;	if (msg == NULL) {		crm_err("cant send NULL message");		all_is_good = FALSE;	} else if (ipc_client == NULL) {		crm_err("cant send message without an IPC Channel");		all_is_good = FALSE;	} else if(ipc_client->ops->get_chan_status(ipc_client) != IPC_CONNECT) {		crm_err("IPC Channel is not connected");		all_is_good = FALSE;	}	if(all_is_good && msg2ipcchan(msg, ipc_client) != HA_OK) {		crm_err("Could not send IPC, message");		all_is_good = FALSE;		if(ipc_client->ops->get_chan_status(ipc_client) != IPC_CONNECT) {			crm_err("IPC Channel is no longer connected");		} else {			CRM_DEV_ASSERT(ipc_client->send_queue->current_qlen < ipc_client->send_queue->max_qlen);		}	}		crm_log_message_adv(all_is_good?LOG_MSG:LOG_WARNING,"IPC[outbound]",msg);	crm_msg_del(msg);		return all_is_good;}