/** * spice_channel_test_capability: * @self: * @cap: * * Test availability of specific channel-kind capability of the remote. * * Returns: %TRUE if @cap, a specific channel capability, is available. **/ gboolean spice_channel_test_capability(SpiceChannel *self, guint32 cap) { spice_channel *c; g_return_val_if_fail(SPICE_IS_CHANNEL(self), FALSE); c = self->priv; return test_capability(c->remote_caps, cap); }
void RecordChannel::on_connect() { Message* message = new Message(SPICE_MSGC_RECORD_MODE); SpiceMsgcRecordMode mode; mode.time = get_mm_time(); mode.mode = _mode = test_capability(SPICE_RECORD_CAP_CELT_0_5_1) ? RecordChannel::data_mode : SPICE_AUDIO_DATA_MODE_RAW; _marshallers->msgc_record_mode(message->marshaller(), &mode); post_message(message); }
bool RedChannelBase::test_capability(uint32_t cap) { return test_capability(_remote_caps, cap); }