2013-12-29 04:53:12 +00:00
|
|
|
/*
|
2016-03-25 19:59:40 +00:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
2013-07-18 00:54:28 +00:00
|
|
|
*
|
2016-03-25 19:59:40 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2013-07-18 00:54:28 +00:00
|
|
|
*
|
2016-03-25 19:59:40 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2013-12-29 04:53:12 +00:00
|
|
|
*/
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
|
|
|
|
#ifndef __GUAC_RDP_SETTINGS_H
|
|
|
|
#define __GUAC_RDP_SETTINGS_H
|
|
|
|
|
2014-01-01 22:44:28 +00:00
|
|
|
#include "config.h"
|
2013-07-18 00:54:28 +00:00
|
|
|
|
2019-12-23 20:48:22 +00:00
|
|
|
#include "keyboard/keymap.h"
|
2013-07-18 23:20:40 +00:00
|
|
|
|
2014-01-01 22:44:28 +00:00
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
|
2015-04-14 19:39:08 +00:00
|
|
|
/**
|
|
|
|
* The maximum number of bytes in the client hostname claimed during
|
|
|
|
* connection.
|
|
|
|
*/
|
|
|
|
#define RDP_CLIENT_HOSTNAME_SIZE 32
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
/**
|
|
|
|
* The default RDP port.
|
|
|
|
*/
|
|
|
|
#define RDP_DEFAULT_PORT 3389
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default screen width, in pixels.
|
|
|
|
*/
|
|
|
|
#define RDP_DEFAULT_WIDTH 1024
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default screen height, in pixels.
|
|
|
|
*/
|
|
|
|
#define RDP_DEFAULT_HEIGHT 768
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default color depth, in bits.
|
|
|
|
*/
|
|
|
|
#define RDP_DEFAULT_DEPTH 16
|
|
|
|
|
2016-02-29 07:51:46 +00:00
|
|
|
/**
|
|
|
|
* The filename to use for the screen recording, if not specified.
|
|
|
|
*/
|
|
|
|
#define GUAC_RDP_DEFAULT_RECORDING_NAME "recording"
|
|
|
|
|
2013-08-24 19:30:38 +00:00
|
|
|
/**
|
|
|
|
* All supported combinations of security types.
|
|
|
|
*/
|
|
|
|
typedef enum guac_rdp_security {
|
|
|
|
|
|
|
|
/**
|
2019-09-29 21:34:05 +00:00
|
|
|
* Legacy RDP encryption.
|
2013-08-24 19:30:38 +00:00
|
|
|
*/
|
|
|
|
GUAC_SECURITY_RDP,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TLS encryption.
|
|
|
|
*/
|
|
|
|
GUAC_SECURITY_TLS,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Network level authentication.
|
|
|
|
*/
|
|
|
|
GUAC_SECURITY_NLA,
|
|
|
|
|
2019-09-29 21:34:35 +00:00
|
|
|
/**
|
|
|
|
* Extended network level authentication.
|
|
|
|
*/
|
|
|
|
GUAC_SECURITY_EXTENDED_NLA,
|
|
|
|
|
2013-08-24 19:30:38 +00:00
|
|
|
/**
|
2019-09-29 21:34:05 +00:00
|
|
|
* Negotiate a security method supported by both server and client.
|
2013-08-24 19:30:38 +00:00
|
|
|
*/
|
|
|
|
GUAC_SECURITY_ANY
|
|
|
|
|
|
|
|
} guac_rdp_security;
|
|
|
|
|
2016-03-16 17:23:21 +00:00
|
|
|
/**
|
|
|
|
* All supported combinations screen resize methods.
|
|
|
|
*/
|
|
|
|
typedef enum guac_rdp_resize_method {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dynamic resizing of the display will not be attempted.
|
|
|
|
*/
|
|
|
|
GUAC_RESIZE_NONE,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dynamic resizing will be attempted through sending requests along the
|
|
|
|
* Display Update channel. This will only work with recent versions of
|
|
|
|
* Windows and relatively-recent versions of FreeRDP.
|
|
|
|
*/
|
|
|
|
GUAC_RESIZE_DISPLAY_UPDATE,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Guacamole will automatically disconnect and reconnect to the RDP server
|
|
|
|
* whenever the screen size changes, requesting the new size during
|
|
|
|
* reconnect.
|
|
|
|
*/
|
|
|
|
GUAC_RESIZE_RECONNECT
|
|
|
|
|
|
|
|
} guac_rdp_resize_method;
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
/**
|
|
|
|
* All settings supported by the Guacamole RDP client.
|
|
|
|
*/
|
|
|
|
typedef struct guac_rdp_settings {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The hostname to connect to.
|
|
|
|
*/
|
|
|
|
char* hostname;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The port to connect to.
|
|
|
|
*/
|
|
|
|
int port;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The domain of the user logging in.
|
|
|
|
*/
|
|
|
|
char* domain;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The username of the user logging in.
|
|
|
|
*/
|
|
|
|
char* username;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The password of the user logging in.
|
|
|
|
*/
|
|
|
|
char* password;
|
|
|
|
|
2016-07-25 05:03:08 +00:00
|
|
|
/**
|
|
|
|
* Whether this connection is read-only, and user input should be dropped.
|
|
|
|
*/
|
|
|
|
int read_only;
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
/**
|
|
|
|
* The color depth of the display to request, in bits.
|
|
|
|
*/
|
|
|
|
int color_depth;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The width of the display to request, in pixels.
|
|
|
|
*/
|
|
|
|
int width;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The height of the display to request, in pixels.
|
|
|
|
*/
|
|
|
|
int height;
|
|
|
|
|
2014-11-26 23:23:26 +00:00
|
|
|
/**
|
|
|
|
* The DPI of the remote display to assume when converting between
|
|
|
|
* client pixels and remote pixels.
|
|
|
|
*/
|
|
|
|
int resolution;
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
/**
|
|
|
|
* Whether audio is enabled.
|
|
|
|
*/
|
|
|
|
int audio_enabled;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether printing is enabled.
|
|
|
|
*/
|
|
|
|
int printing_enabled;
|
|
|
|
|
2018-02-23 10:03:34 +00:00
|
|
|
/**
|
|
|
|
* Name of the redirected printer.
|
|
|
|
*/
|
|
|
|
char* printer_name;
|
|
|
|
|
2013-07-25 19:05:15 +00:00
|
|
|
/**
|
|
|
|
* Whether the virtual drive is enabled.
|
|
|
|
*/
|
|
|
|
int drive_enabled;
|
2018-07-04 02:59:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the virtual drive to pass through to the RDP connection.
|
|
|
|
*/
|
|
|
|
char* drive_name;
|
2013-07-25 19:05:15 +00:00
|
|
|
|
2013-07-29 18:53:15 +00:00
|
|
|
/**
|
|
|
|
* The local system path which will be used to persist the
|
|
|
|
* virtual drive.
|
|
|
|
*/
|
|
|
|
char* drive_path;
|
|
|
|
|
2015-07-28 21:09:38 +00:00
|
|
|
/**
|
2015-07-28 21:36:08 +00:00
|
|
|
* Whether to automatically create the local system path if it does not
|
|
|
|
* exist.
|
2015-07-28 21:09:38 +00:00
|
|
|
*/
|
|
|
|
int create_drive_path;
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
/**
|
|
|
|
* Whether this session is a console session.
|
|
|
|
*/
|
|
|
|
int console;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether to allow audio in the console session.
|
|
|
|
*/
|
|
|
|
int console_audio;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The keymap chosen as the layout of the server.
|
|
|
|
*/
|
|
|
|
const guac_rdp_keymap* server_layout;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The initial program to run, if any.
|
|
|
|
*/
|
|
|
|
char* initial_program;
|
|
|
|
|
2015-04-14 19:39:08 +00:00
|
|
|
/**
|
|
|
|
* The name of the client to submit to the RDP server upon connection, or
|
|
|
|
* NULL if the name is not specified.
|
|
|
|
*/
|
|
|
|
char* client_name;
|
|
|
|
|
2013-08-24 08:17:27 +00:00
|
|
|
/**
|
2013-08-24 19:30:38 +00:00
|
|
|
* The type of security to use for the connection.
|
2013-08-24 08:17:27 +00:00
|
|
|
*/
|
2013-08-24 19:30:38 +00:00
|
|
|
guac_rdp_security security_mode;
|
2013-08-24 08:17:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether bad server certificates should be ignored.
|
|
|
|
*/
|
|
|
|
int ignore_certificate;
|
|
|
|
|
|
|
|
/**
|
2013-08-25 18:35:31 +00:00
|
|
|
* Whether authentication should be disabled. This is different from the
|
2013-08-24 08:17:27 +00:00
|
|
|
* authentication that takes place when a user provides their username
|
2013-08-25 18:35:31 +00:00
|
|
|
* and password. Authentication is required by definition for NLA.
|
2013-08-24 08:17:27 +00:00
|
|
|
*/
|
2013-08-25 18:35:31 +00:00
|
|
|
int disable_authentication;
|
2013-08-24 08:17:27 +00:00
|
|
|
|
2014-01-29 23:58:04 +00:00
|
|
|
/**
|
2014-01-30 08:42:37 +00:00
|
|
|
* The application to launch, if RemoteApp is in use.
|
2014-01-29 23:58:04 +00:00
|
|
|
*/
|
2014-01-30 08:42:37 +00:00
|
|
|
char* remote_app;
|
2014-01-29 23:58:04 +00:00
|
|
|
|
|
|
|
/**
|
2014-01-30 08:42:37 +00:00
|
|
|
* The working directory of the remote application, if RemoteApp is in use.
|
2014-01-29 23:58:04 +00:00
|
|
|
*/
|
2014-01-30 08:42:37 +00:00
|
|
|
char* remote_app_dir;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The arguments to pass to the remote application, if RemoteApp is in use.
|
|
|
|
*/
|
|
|
|
char* remote_app_args;
|
2014-01-29 23:58:04 +00:00
|
|
|
|
2014-03-02 00:43:55 +00:00
|
|
|
/**
|
2014-03-02 06:48:15 +00:00
|
|
|
* NULL-terminated list of all static virtual channel names, or NULL if
|
|
|
|
* no channels whatsoever.
|
2014-03-02 00:43:55 +00:00
|
|
|
*/
|
|
|
|
char** svc_names;
|
|
|
|
|
2015-06-12 23:35:38 +00:00
|
|
|
/**
|
|
|
|
* Whether the desktop wallpaper should be visible. If unset, the desktop
|
|
|
|
* wallpaper will be hidden, reducing the amount of bandwidth required.
|
|
|
|
*/
|
|
|
|
int wallpaper_enabled;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether desktop and window theming should be allowed. If unset, theming
|
|
|
|
* is temporarily disabled on the desktop of the RDP server for the sake of
|
|
|
|
* performance, reducing the amount of bandwidth required.
|
|
|
|
*/
|
|
|
|
int theming_enabled;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether glyphs should be smoothed with antialiasing (ClearType). If
|
|
|
|
* unset, glyphs will be rendered with sharp edges and using single colors,
|
|
|
|
* effectively 1-bit images, reducing the amount of bandwidth required.
|
|
|
|
*/
|
|
|
|
int font_smoothing_enabled;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether windows contents should be shown as they are moved. If unset,
|
|
|
|
* only a window border will be shown during window move operations,
|
|
|
|
* reducing the amount of bandwidth required.
|
|
|
|
*/
|
|
|
|
int full_window_drag_enabled;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether desktop composition (Aero) should be enabled during the session.
|
|
|
|
* As desktop composition provides alpha blending and other special
|
|
|
|
* effects, this increases the amount of bandwidth used. If unset, desktop
|
|
|
|
* composition will be disabled.
|
|
|
|
*/
|
|
|
|
int desktop_composition_enabled;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether menu animations should be shown. If unset, menus will not be
|
|
|
|
* animated, reducing the amount of bandwidth required.
|
|
|
|
*/
|
|
|
|
int menu_animations_enabled;
|
|
|
|
|
2018-01-02 23:26:29 +00:00
|
|
|
/**
|
|
|
|
* Whether bitmap caching should be disabled. By default it is
|
|
|
|
* enabled - this allows users to explicitly disable it.
|
|
|
|
*/
|
|
|
|
int disable_bitmap_caching;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether offscreen caching should be disabled. By default it is
|
|
|
|
* enabled - this allows users to explicitly disable it.
|
|
|
|
*/
|
|
|
|
int disable_offscreen_caching;
|
|
|
|
|
2018-02-20 20:35:50 +00:00
|
|
|
/**
|
|
|
|
* Whether glyph caching should be disabled. By default it is enabled
|
|
|
|
* - this allows users to explicitly disable it.
|
|
|
|
*/
|
|
|
|
int disable_glyph_caching;
|
|
|
|
|
2015-11-03 21:29:41 +00:00
|
|
|
/**
|
|
|
|
* The preconnection ID to send within the preconnection PDU when
|
|
|
|
* initiating an RDP connection, if any. If no preconnection ID is
|
|
|
|
* specified, this will be -1.
|
|
|
|
*/
|
|
|
|
int preconnection_id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The preconnection BLOB (PCB) to send to the RDP server prior to full RDP
|
|
|
|
* connection negotiation. This value is used by Hyper-V to select the
|
|
|
|
* destination VM.
|
|
|
|
*/
|
|
|
|
char* preconnection_blob;
|
|
|
|
|
2018-04-11 01:31:50 +00:00
|
|
|
/**
|
|
|
|
* The timezone to pass through to the RDP connection.
|
|
|
|
*/
|
|
|
|
char* timezone;
|
|
|
|
|
2016-03-01 05:50:00 +00:00
|
|
|
#ifdef ENABLE_COMMON_SSH
|
|
|
|
/**
|
|
|
|
* Whether SFTP should be enabled for the VNC connection.
|
|
|
|
*/
|
|
|
|
int enable_sftp;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The hostname of the SSH server to connect to for SFTP.
|
|
|
|
*/
|
|
|
|
char* sftp_hostname;
|
|
|
|
|
2018-04-05 12:52:16 +00:00
|
|
|
/**
|
|
|
|
* The public SSH host key.
|
|
|
|
*/
|
|
|
|
char* sftp_host_key;
|
|
|
|
|
2016-03-01 05:50:00 +00:00
|
|
|
/**
|
|
|
|
* The port of the SSH server to connect to for SFTP.
|
|
|
|
*/
|
|
|
|
char* sftp_port;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The username to provide when authenticating with the SSH server for
|
|
|
|
* SFTP.
|
|
|
|
*/
|
|
|
|
char* sftp_username;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The password to provide when authenticating with the SSH server for
|
|
|
|
* SFTP (if not using a private key).
|
|
|
|
*/
|
|
|
|
char* sftp_password;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The base64-encoded private key to use when authenticating with the SSH
|
|
|
|
* server for SFTP (if not using a password).
|
|
|
|
*/
|
|
|
|
char* sftp_private_key;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The passphrase to use to decrypt the provided base64-encoded private
|
|
|
|
* key.
|
|
|
|
*/
|
|
|
|
char* sftp_passphrase;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The default location for file uploads within the SSH server. This will
|
|
|
|
* apply only to uploads which do not use the filesystem guac_object (where
|
|
|
|
* the destination directory is otherwise ambiguous).
|
|
|
|
*/
|
|
|
|
char* sftp_directory;
|
2017-06-01 00:52:07 +00:00
|
|
|
|
2017-06-29 22:48:23 +00:00
|
|
|
/**
|
|
|
|
* The path of the directory within the SSH server to expose as a
|
|
|
|
* filesystem guac_object.
|
|
|
|
*/
|
|
|
|
char* sftp_root_directory;
|
|
|
|
|
2017-06-01 00:52:07 +00:00
|
|
|
/**
|
|
|
|
* The interval at which SSH keepalive messages are sent to the server for
|
|
|
|
* SFTP connections. The default is 0 (disabling keepalives), and a value
|
|
|
|
* of 1 is automatically increased to 2 by libssh2 to avoid busy loop corner
|
|
|
|
* cases.
|
|
|
|
*/
|
2017-06-25 08:49:05 +00:00
|
|
|
int sftp_server_alive_interval;
|
2016-03-01 05:50:00 +00:00
|
|
|
#endif
|
|
|
|
|
2016-02-29 07:51:46 +00:00
|
|
|
/**
|
|
|
|
* The path in which the screen recording should be saved, if enabled. If
|
|
|
|
* no screen recording should be saved, this will be NULL.
|
|
|
|
*/
|
|
|
|
char* recording_path;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The filename to use for the screen recording, if enabled.
|
|
|
|
*/
|
|
|
|
char* recording_name;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether the screen recording path should be automatically created if it
|
|
|
|
* does not already exist.
|
|
|
|
*/
|
|
|
|
int create_recording_path;
|
|
|
|
|
2017-12-08 20:06:30 +00:00
|
|
|
/**
|
|
|
|
* Non-zero if output which is broadcast to each connected client
|
|
|
|
* (graphics, streams, etc.) should NOT be included in the session
|
|
|
|
* recording, zero otherwise. Output is included by default, as it is
|
|
|
|
* necessary for any recording which must later be viewable as video.
|
|
|
|
*/
|
|
|
|
int recording_exclude_output;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Non-zero if changes to mouse state, such as position and buttons pressed
|
|
|
|
* or released, should NOT be included in the session recording, zero
|
|
|
|
* otherwise. Mouse state is included by default, as it is necessary for
|
|
|
|
* the mouse cursor to be rendered in any resulting video.
|
|
|
|
*/
|
|
|
|
int recording_exclude_mouse;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Non-zero if keys pressed and released should be included in the session
|
|
|
|
* recording, zero otherwise. Key events are NOT included by default within
|
|
|
|
* the recording, as doing so has privacy and security implications.
|
|
|
|
* Including key events may be necessary in certain auditing contexts, but
|
|
|
|
* should only be done with caution. Key events can easily contain
|
|
|
|
* sensitive information, such as passwords, credit card numbers, etc.
|
|
|
|
*/
|
|
|
|
int recording_include_keys;
|
|
|
|
|
2016-03-16 17:23:21 +00:00
|
|
|
/**
|
|
|
|
* The method to apply when the user's display changes size.
|
|
|
|
*/
|
|
|
|
guac_rdp_resize_method resize_method;
|
|
|
|
|
2016-04-16 22:54:26 +00:00
|
|
|
/**
|
|
|
|
* Whether audio input (microphone) is enabled.
|
|
|
|
*/
|
|
|
|
int enable_audio_input;
|
|
|
|
|
2017-04-10 06:58:11 +00:00
|
|
|
/**
|
|
|
|
* The hostname of the remote desktop gateway that should be used as an
|
|
|
|
* intermediary for the remote desktop connection. If no gateway should
|
|
|
|
* be used, this will be NULL.
|
|
|
|
*/
|
|
|
|
char* gateway_hostname;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The port of the remote desktop gateway that should be used as an
|
|
|
|
* intermediary for the remote desktop connection. NOTE: versions of
|
|
|
|
* FreeRDP prior to 1.2 which have gateway support ignore this value, and
|
|
|
|
* instead use a hard-coded value of 443.
|
|
|
|
*/
|
|
|
|
int gateway_port;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The domain of the user authenticating with the remote desktop gateway,
|
|
|
|
* if a gateway is being used. This is not necessarily the same as the
|
|
|
|
* user actually using the remote desktop connection.
|
|
|
|
*/
|
|
|
|
char* gateway_domain;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The username of the user authenticating with the remote desktop gateway,
|
|
|
|
* if a gateway is being used. This is not necessarily the same as the
|
|
|
|
* user actually using the remote desktop connection.
|
|
|
|
*/
|
|
|
|
char* gateway_username;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The password to provide when authenticating with the remote desktop
|
|
|
|
* gateway, if a gateway is being used.
|
|
|
|
*/
|
|
|
|
char* gateway_password;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The load balancing information/cookie which should be provided to
|
|
|
|
* the connection broker, if a connection broker is being used.
|
|
|
|
*/
|
|
|
|
char* load_balance_info;
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
} guac_rdp_settings;
|
|
|
|
|
2016-03-01 05:50:00 +00:00
|
|
|
/**
|
|
|
|
* Parses all given args, storing them in a newly-allocated settings object. If
|
|
|
|
* the args fail to parse, NULL is returned.
|
|
|
|
*
|
|
|
|
* @param user
|
|
|
|
* The user who submitted the given arguments while joining the
|
|
|
|
* connection.
|
|
|
|
*
|
|
|
|
* @param argc
|
|
|
|
* The number of arguments within the argv array.
|
|
|
|
*
|
|
|
|
* @param argv
|
|
|
|
* The values of all arguments provided by the user.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* A newly-allocated settings object which must be freed with
|
|
|
|
* guac_rdp_settings_free() when no longer needed. If the arguments fail
|
|
|
|
* to parse, NULL is returned.
|
|
|
|
*/
|
|
|
|
guac_rdp_settings* guac_rdp_parse_args(guac_user* user,
|
|
|
|
int argc, const char** argv);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Frees the given guac_rdp_settings object, having been previously allocated
|
|
|
|
* via guac_rdp_parse_args().
|
|
|
|
*
|
|
|
|
* @param settings
|
|
|
|
* The settings object to free.
|
|
|
|
*/
|
|
|
|
void guac_rdp_settings_free(guac_rdp_settings* settings);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* NULL-terminated array of accepted client args.
|
|
|
|
*/
|
|
|
|
extern const char* GUAC_RDP_CLIENT_ARGS[];
|
|
|
|
|
2013-07-18 00:54:28 +00:00
|
|
|
/**
|
2013-07-20 01:37:05 +00:00
|
|
|
* Save all given settings to the given freerdp instance.
|
2016-03-01 05:50:00 +00:00
|
|
|
*
|
2018-11-11 22:25:12 +00:00
|
|
|
* @param client
|
|
|
|
* The guac_client object providing the settings.
|
|
|
|
*
|
2016-03-07 23:05:31 +00:00
|
|
|
* @param guac_settings
|
|
|
|
* The guac_rdp_settings object to save.
|
|
|
|
*
|
|
|
|
* @param rdp
|
|
|
|
* The RDP instance to save settings to.
|
2013-07-18 00:54:28 +00:00
|
|
|
*/
|
2018-11-11 22:25:12 +00:00
|
|
|
void guac_rdp_push_settings(guac_client* client,
|
|
|
|
guac_rdp_settings* guac_settings, freerdp* rdp);
|
2013-07-20 01:37:05 +00:00
|
|
|
|
|
|
|
/**
|
2014-07-21 16:12:17 +00:00
|
|
|
* Returns the width of the RDP session display.
|
2016-03-01 05:50:00 +00:00
|
|
|
*
|
2016-03-07 23:05:31 +00:00
|
|
|
* @param rdp
|
|
|
|
* The RDP instance to retrieve the width from.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* The current width of the RDP display, in pixels.
|
2013-07-20 01:37:05 +00:00
|
|
|
*/
|
2014-07-21 16:12:17 +00:00
|
|
|
int guac_rdp_get_width(freerdp* rdp);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the height of the RDP session display.
|
2016-03-01 05:50:00 +00:00
|
|
|
*
|
2016-03-07 23:05:31 +00:00
|
|
|
* @param rdp
|
|
|
|
* The RDP instance to retrieve the height from.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* The current height of the RDP display, in pixels.
|
2014-07-21 16:12:17 +00:00
|
|
|
*/
|
|
|
|
int guac_rdp_get_height(freerdp* rdp);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the depth of the RDP session display.
|
2016-03-01 05:50:00 +00:00
|
|
|
*
|
2016-03-07 23:05:31 +00:00
|
|
|
* @param rdp
|
|
|
|
* The RDP instance to retrieve the depth from.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* The current depth of the RDP display, in bits per pixel.
|
2014-07-21 16:12:17 +00:00
|
|
|
*/
|
|
|
|
int guac_rdp_get_depth(freerdp* rdp);
|
2013-07-18 00:54:28 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|