Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyheroyuki <myheroyuki@outlook.com>2023-07-07 15:07:21 +0300
committermyheroyuki <myheroyuki@outlook.com>2023-07-07 15:07:21 +0300
commite7c527ebec38feb2fd426a0cc0ab75df5399a1cf (patch)
tree961631ce9c8e0f9c4e3eac98c08a50ebddcb5cb8 /plugins
parent1d9787e5b7fc8d6cad993c6480a2c6a94e6c071a (diff)
Begin work on adding remote assistance
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rdp/rdp_plugin.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c
index 5c2a36114..655660e5d 100644
--- a/plugins/rdp/rdp_plugin.c
+++ b/plugins/rdp/rdp_plugin.c
@@ -58,6 +58,7 @@
#include <cairo/cairo.h>
#endif
#include <freerdp/addin.h>
+#include <freerdp/assistance.h>
#include <freerdp/settings.h>
#include <freerdp/freerdp.h>
#include <freerdp/constants.h>
@@ -1375,6 +1376,44 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget *gp)
freerdp_settings_set_string(rfi->settings, FreeRDP_ConfigPath, datapath);
g_free(datapath);
+
+
+
+
+
+ if (remmina_plugin_service->file_get_int(remminafile, "assistance_mode", FALSE)){
+ rdpAssistanceFile* file = freerdp_assistance_file_new();
+ if (!file)
+ REMMINA_PLUGIN_DEBUG("Failed to get file");
+
+ status = freerdp_assistance_parse_file(file, "", "");
+
+ if (status < 0)
+ REMMINA_PLUGIN_DEBUG("Failed to get status");;
+
+ if (!freerdp_assistance_populate_settings_from_assistance_file(file, rfi->settings))
+ REMMINA_PLUGIN_DEBUG("Failed to populate");
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#if defined(PROXY_TYPE_IGNORE)
if (!remmina_plugin_service->file_get_int(remminafile, "useproxyenv", FALSE) ? TRUE : FALSE) {
REMMINA_PLUGIN_DEBUG("Not using system proxy settings");
@@ -2896,6 +2935,7 @@ static const RemminaProtocolSetting remmina_rdp_advanced_settings[] =
{ REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "websockets", N_("Enable Gateway websockets support"), TRUE, NULL, NULL },
#endif
{ REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "no-suppress", N_("Update framebuffer even when not visible"), TRUE, NULL },
+ { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "assistance_mode", N_("Attempt to connect in assistnace mode"), TRUE, NULL },
{ REMMINA_PROTOCOL_SETTING_TYPE_END, NULL, NULL, FALSE, NULL, NULL }
};