From e7c527ebec38feb2fd426a0cc0ab75df5399a1cf Mon Sep 17 00:00:00 2001 From: myheroyuki Date: Fri, 7 Jul 2023 21:07:21 +0900 Subject: Begin work on adding remote assistance --- plugins/rdp/rdp_plugin.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'plugins') 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 #endif #include +#include #include #include #include @@ -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 } }; -- cgit v1.2.3