-
Notifications
You must be signed in to change notification settings - Fork 121
feat(client): add --codecs #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @elmarco |
Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
/// This function generates a list of client codec capabilities based on the | ||
/// provided configuration. | ||
/// | ||
/// # Arguments | ||
/// | ||
/// * `config` - A slice of string slices that specifies which codecs to include | ||
/// in the capabilities. Codecs can be explicitly turned on ("codec:on") or | ||
/// off ("codec:off"). | ||
/// | ||
/// # List of codecs | ||
/// | ||
/// * `remotefx` (on by default) | ||
/// | ||
/// # Returns | ||
/// | ||
/// A vector of `Codec` structs representing the codec capabilities, or an error | ||
/// suitable for CLI. | ||
pub fn client_codecs_capabilities(config: &[&str]) -> Result<BitmapCodecs, String> { | ||
use std::collections::HashMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I think this kind of CLI-related logic does not belong to ironrdp-pdu. But I have local changes to improve config handling and support the .RDP file format. Maybe we could revisit afterwards.
@@ -1,3 +1,4 @@ | |||
#![allow(clippy::print_stdout)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick:
#![allow(clippy::print_stdout)] | |
#![allow(clippy::print_stdout)] | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
thanks! yes always happy to take suggestions or improvements on top! |
Add "--codecs remotefx:on,..." option to the client.
Depends on #782