From 00401147ba842d283b522d6022620b62d36e1ef9 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 25 Dec 2012 19:36:19 -0800 Subject: [PATCH] Implement console arguments (fixes #227) --- protocols/rdp/ChangeLog | 4 ++++ protocols/rdp/src/client.c | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/protocols/rdp/ChangeLog b/protocols/rdp/ChangeLog index 56159f1b..dd89481d 100644 --- a/protocols/rdp/ChangeLog +++ b/protocols/rdp/ChangeLog @@ -1,3 +1,7 @@ +2012-12-25 Michael Jumper + + * Console arguments (fixes #227) + 2012-12-13 Michael Jumper * Implement PATBLT fallback (fixes #238) diff --git a/protocols/rdp/src/client.c b/protocols/rdp/src/client.c index 1e45674e..bf95175d 100644 --- a/protocols/rdp/src/client.c +++ b/protocols/rdp/src/client.c @@ -92,6 +92,8 @@ const char* GUAC_CLIENT_ARGS[] = { "initial-program", "color-depth", "disable-audio", + "console", + "console-audio", NULL }; @@ -105,7 +107,9 @@ enum ARGS_IDX { IDX_HEIGHT, IDX_INITIAL_PROGRAM, IDX_COLOR_DEPTH, - IDX_DISABLE_AUDIO + IDX_DISABLE_AUDIO, + IDX_CONSOLE, + IDX_CONSOLE_AUDIO }; int __guac_receive_channel_data(freerdp* rdp_inst, int channelId, uint8* data, int size, int flags, int total_size) { @@ -373,6 +377,10 @@ int guac_client_init(guac_client* client, int argc, char** argv) { /* Set settings */ settings = rdp_inst->settings; + /* Console */ + settings->console_session = (strcmp(argv[IDX_CONSOLE], "true") != 0); + settings->console_audio = (strcmp(argv[IDX_CONSOLE_AUDIO], "true") != 0); + /* --no-auth */ settings->authentication = false;