virtual bool operator() (RedChannel& channel) { if (channel.get_type() == SPICE_CHANNEL_CURSOR && channel.get_id() == _channel.get_id()) { static_cast<CursorChannel&>(channel).detach_display(); return true; } return false; }
virtual bool operator() (RedChannel& channel) { if (channel.get_type() == SPICE_CHANNEL_CURSOR && channel.get_id() == _channel.get_id()) { static_cast<CursorChannel&>(channel).attach_display(&_channel); } else if (channel.get_type() == SPICE_CHANNEL_INPUTS) { _channel.attach_inputs(&static_cast<InputsChannel&>(channel)); } return false; }
void RedClient::migrate_channel(RedChannel& channel) { DBG(0, "channel type %u id %u", channel.get_type(), channel.get_id()); _migrate.swap_peer(channel); }