From c31e3b38ad17b009aa82c78ed66131db6966035a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 29 Jul 2013 11:53:15 -0700 Subject: [PATCH] Add drive-path parameter. --- src/protocols/rdp/client.c | 5 +++++ src/protocols/rdp/rdp_settings.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/protocols/rdp/client.c b/src/protocols/rdp/client.c index efc267f5..43d713b7 100644 --- a/src/protocols/rdp/client.c +++ b/src/protocols/rdp/client.c @@ -101,6 +101,7 @@ const char* GUAC_CLIENT_ARGS[] = { "disable-audio", "enable-printing", "enable-drive", + "drive-path", "console", "console-audio", "server-layout", @@ -124,6 +125,7 @@ enum RDP_ARGS_IDX { IDX_DISABLE_AUDIO, IDX_ENABLE_PRINTING, IDX_ENABLE_DRIVE, + IDX_DRIVE_PATH, IDX_CONSOLE, IDX_CONSOLE_AUDIO, IDX_SERVER_LAYOUT, @@ -539,6 +541,9 @@ int guac_client_init(guac_client* client, int argc, char** argv) { guac_client_data->settings.drive_enabled = (strcmp(argv[IDX_ENABLE_DRIVE], "true") == 0); + /* Drive enable/disable */ + guac_client_data->settings.drive_path = strdup(argv[IDX_DRIVE_PATH]); + /* Store client data */ guac_client_data->rdp_inst = rdp_inst; guac_client_data->bounded = FALSE; diff --git a/src/protocols/rdp/rdp_settings.h b/src/protocols/rdp/rdp_settings.h index ff7d7489..70042f48 100644 --- a/src/protocols/rdp/rdp_settings.h +++ b/src/protocols/rdp/rdp_settings.h @@ -150,6 +150,12 @@ typedef struct guac_rdp_settings { */ int drive_enabled; + /** + * The local system path which will be used to persist the + * virtual drive. + */ + char* drive_path; + /** * Whether this session is a console session. */