Implement console arguments (fixes #227)
This commit is contained in:
parent
7a2a9a3e64
commit
00401147ba
@ -1,3 +1,7 @@
|
|||||||
|
2012-12-25 Michael Jumper <zhangmaike@users.sourceforge.net>
|
||||||
|
|
||||||
|
* Console arguments (fixes #227)
|
||||||
|
|
||||||
2012-12-13 Michael Jumper <zhangmaike@users.sourceforge.net>
|
2012-12-13 Michael Jumper <zhangmaike@users.sourceforge.net>
|
||||||
|
|
||||||
* Implement PATBLT fallback (fixes #238)
|
* Implement PATBLT fallback (fixes #238)
|
||||||
|
@ -92,6 +92,8 @@ const char* GUAC_CLIENT_ARGS[] = {
|
|||||||
"initial-program",
|
"initial-program",
|
||||||
"color-depth",
|
"color-depth",
|
||||||
"disable-audio",
|
"disable-audio",
|
||||||
|
"console",
|
||||||
|
"console-audio",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -105,7 +107,9 @@ enum ARGS_IDX {
|
|||||||
IDX_HEIGHT,
|
IDX_HEIGHT,
|
||||||
IDX_INITIAL_PROGRAM,
|
IDX_INITIAL_PROGRAM,
|
||||||
IDX_COLOR_DEPTH,
|
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) {
|
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 */
|
/* Set settings */
|
||||||
settings = rdp_inst->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 */
|
/* --no-auth */
|
||||||
settings->authentication = false;
|
settings->authentication = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user