GUACAMOLE-445: Add settings for printer name.

This commit is contained in:
Nick Couchman 2018-02-23 05:03:34 -05:00
parent 334849e2a6
commit b21f00c29d
2 changed files with 16 additions and 0 deletions

View File

@ -52,6 +52,7 @@ const char* GUAC_RDP_CLIENT_ARGS[] = {
"color-depth",
"disable-audio",
"enable-printing",
"printer-name",
"enable-drive",
"drive-path",
"create-drive-path",
@ -186,6 +187,11 @@ enum RDP_ARGS_IDX {
*/
IDX_ENABLE_PRINTING,
/**
* The name of the printer that will be passed through to the RDP server.
*/
IDX_PRINTER_NAME,
/**
* "true" if the virtual drive should be enabled, "false" or blank
* otherwise.
@ -788,6 +794,11 @@ guac_rdp_settings* guac_rdp_parse_args(guac_user* user,
guac_user_parse_args_boolean(user, GUAC_RDP_CLIENT_ARGS, argv,
IDX_ENABLE_PRINTING, 0);
/* Name of redirected printer */
settings->printer_name =
guac_user_parse_args_string(user, GUAC_RDP_CLIENT_ARGS, argv,
IDX_PRINTER_NAME, "Guacamole Printer");
/* Drive enable/disable */
settings->drive_enabled =
guac_user_parse_args_boolean(user, GUAC_RDP_CLIENT_ARGS, argv,

View File

@ -177,6 +177,11 @@ typedef struct guac_rdp_settings {
*/
int printing_enabled;
/**
* Name of the redirected printer.
*/
char* printer_name;
/**
* Whether the virtual drive is enabled.
*/