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:
authorakallabeth <akallabeth@posteo.net>2023-11-27 15:29:16 +0300
committerakallabeth <akallabeth@posteo.net>2023-11-27 18:00:31 +0300
commit4c3879e87578658a6bdf0ed30579f2fcbf0434d7 (patch)
treeb9890bcb7aaf323ed25ea4c4404ee299ab62f715 /plugins/rdp/rdp_channels.c
parent06d5c2f96d3e2b64ac4f7abc74f7c95b31d08a73 (diff)
[freerdp] update to build for stable-3.0
* remove direct rdpSettings access * remove cached pointers in rf_context * base rf_context on rdpClientContext * simplify FreeRDP version detection
Diffstat (limited to 'plugins/rdp/rdp_channels.c')
-rw-r--r--plugins/rdp/rdp_channels.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/rdp/rdp_channels.c b/plugins/rdp/rdp_channels.c
index b063c1b44..fabb25f56 100644
--- a/plugins/rdp/rdp_channels.c
+++ b/plugins/rdp/rdp_channels.c
@@ -43,7 +43,7 @@
#include <freerdp/client/cliprdr.h>
#include <freerdp/gdi/gfx.h>
-void remmina_rdp_OnChannelConnectedEventHandler(void* context, ChannelConnectedEventArgs* e)
+void remmina_rdp_OnChannelConnectedEventHandler(void *context, CONST_ARG ChannelConnectedEventArgs *e)
{
TRACE_CALL(__func__);
@@ -56,9 +56,9 @@ void remmina_rdp_OnChannelConnectedEventHandler(void* context, ChannelConnectedE
g_print("Unimplemented: channel %s connected but we can’t use it\n", e->name);
// xf_tsmf_init(xfc, (TsmfClientContext*) e->pInterface);
}else if (g_strcmp0(e->name, RDPGFX_DVC_CHANNEL_NAME) == 0) {
- if (freerdp_settings_get_bool(rfi->settings, FreeRDP_SoftwareGdi)) {
+ if (freerdp_settings_get_bool(rfi->clientContext.context.settings, FreeRDP_SoftwareGdi)) {
rfi->rdpgfxchan = TRUE;
- gdi_graphics_pipeline_init(rfi->context.gdi, (RdpgfxClientContext*) e->pInterface);
+ gdi_graphics_pipeline_init(rfi->clientContext.context.gdi, (RdpgfxClientContext*) e->pInterface);
}
else
g_print("Unimplemented: channel %s connected but libfreerdp is in HardwareGdi mode\n", e->name);
@@ -83,14 +83,13 @@ void remmina_rdp_OnChannelConnectedEventHandler(void* context, ChannelConnectedE
REMMINA_PLUGIN_DEBUG("Channel %s has been opened", e->name);
}
-void remmina_rdp_OnChannelDisconnectedEventHandler(void* context, ChannelDisconnectedEventArgs* e)
-{
+void remmina_rdp_OnChannelDisconnectedEventHandler(void *context, CONST_ARG ChannelDisconnectedEventArgs *e) {
TRACE_CALL(__func__);
rfContext* rfi = (rfContext*)context;
if (strcmp(e->name, RDPGFX_DVC_CHANNEL_NAME) == 0) {
- if (freerdp_settings_get_bool(rfi->settings, FreeRDP_SoftwareGdi))
- gdi_graphics_pipeline_uninit(rfi->context.gdi, (RdpgfxClientContext*) e->pInterface);
+ if (freerdp_settings_get_bool(rfi->clientContext.context.settings, FreeRDP_SoftwareGdi))
+ gdi_graphics_pipeline_uninit(rfi->clientContext.context.gdi, (RdpgfxClientContext*) e->pInterface);
}
REMMINA_PLUGIN_DEBUG("Channel %s has been closed", e->name);