msg2ipcchan(notify_msg, native->callback_channel); CRM_DEV_ASSERT(native->callback_channel->send_queue->current_qlen < native->callback_channel->send_queue->max_qlen); ha_msg_del(notify_msg);
send_ipc_message(native->callback_channel, notify_msg);
cib_native_register_callback(cib_t* cib, const char *callback, int enabled) {	HA_Message *notify_msg = ha_msg_new(3);	cib_native_opaque_t *native = cib->variant_opaque;	/* short term hack - should make this generic somehow */	ha_msg_add(notify_msg, F_CIB_OPERATION, T_CIB_NOTIFY);	ha_msg_add(notify_msg, F_CIB_NOTIFY_TYPE, callback);	ha_msg_add_int(notify_msg, F_CIB_NOTIFY_ACTIVATE, enabled);	msg2ipcchan(notify_msg, native->callback_channel);	CRM_DEV_ASSERT(native->callback_channel->send_queue->current_qlen < native->callback_channel->send_queue->max_qlen);	ha_msg_del(notify_msg);	return cib_ok;}