Add drive-path parameter.

This commit is contained in:
Michael Jumper 2013-07-29 11:53:15 -07:00
parent 7b843a806f
commit c31e3b38ad
2 changed files with 11 additions and 0 deletions

View File

@ -101,6 +101,7 @@ const char* GUAC_CLIENT_ARGS[] = {
"disable-audio", "disable-audio",
"enable-printing", "enable-printing",
"enable-drive", "enable-drive",
"drive-path",
"console", "console",
"console-audio", "console-audio",
"server-layout", "server-layout",
@ -124,6 +125,7 @@ enum RDP_ARGS_IDX {
IDX_DISABLE_AUDIO, IDX_DISABLE_AUDIO,
IDX_ENABLE_PRINTING, IDX_ENABLE_PRINTING,
IDX_ENABLE_DRIVE, IDX_ENABLE_DRIVE,
IDX_DRIVE_PATH,
IDX_CONSOLE, IDX_CONSOLE,
IDX_CONSOLE_AUDIO, IDX_CONSOLE_AUDIO,
IDX_SERVER_LAYOUT, IDX_SERVER_LAYOUT,
@ -539,6 +541,9 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
guac_client_data->settings.drive_enabled = guac_client_data->settings.drive_enabled =
(strcmp(argv[IDX_ENABLE_DRIVE], "true") == 0); (strcmp(argv[IDX_ENABLE_DRIVE], "true") == 0);
/* Drive enable/disable */
guac_client_data->settings.drive_path = strdup(argv[IDX_DRIVE_PATH]);
/* Store client data */ /* Store client data */
guac_client_data->rdp_inst = rdp_inst; guac_client_data->rdp_inst = rdp_inst;
guac_client_data->bounded = FALSE; guac_client_data->bounded = FALSE;

View File

@ -150,6 +150,12 @@ typedef struct guac_rdp_settings {
*/ */
int drive_enabled; 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. * Whether this session is a console session.
*/ */