diff options
author | akallabeth <akallabeth@posteo.net> | 2022-06-24 12:46:53 +0300 |
---|---|---|
committer | akallabeth <akallabeth@posteo.net> | 2022-06-24 12:56:51 +0300 |
commit | 8ed56b6e50a9a6c9df87bff84dfcbc379adbccf4 (patch) | |
tree | a53990e2123403e4cbe807d5050468fe6b776a62 /plugins/rdp/rdp_channels.c | |
parent | aa6adce364a54ee644c4886c94e62c0285e23311 (diff) |
Fixed type of channel connect/disconnect callbacks
Diffstat (limited to 'plugins/rdp/rdp_channels.c')
-rw-r--r-- | plugins/rdp/rdp_channels.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/rdp/rdp_channels.c b/plugins/rdp/rdp_channels.c index f5089b7c1..249e56ef5 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(rdpContext* context, ChannelConnectedEventArgs* e) +void remmina_rdp_OnChannelConnectedEventHandler(void* context, ChannelConnectedEventArgs* e) { TRACE_CALL(__func__); @@ -58,7 +58,7 @@ void remmina_rdp_OnChannelConnectedEventHandler(rdpContext* context, ChannelConn }else if (g_strcmp0(e->name, RDPGFX_DVC_CHANNEL_NAME) == 0) { if (freerdp_settings_get_bool(rfi->settings, FreeRDP_SoftwareGdi)) { rfi->rdpgfxchan = TRUE; - gdi_graphics_pipeline_init(context->gdi, (RdpgfxClientContext*) e->pInterface); + gdi_graphics_pipeline_init(rfi->context.gdi, (RdpgfxClientContext*) e->pInterface); } else g_print("Unimplemented: channel %s connected but libfreerdp is in HardwareGdi mode\n", e->name); @@ -83,14 +83,14 @@ void remmina_rdp_OnChannelConnectedEventHandler(rdpContext* context, ChannelConn REMMINA_PLUGIN_DEBUG("Channel %s has been opened", e->name); } -void remmina_rdp_OnChannelDisconnectedEventHandler(rdpContext* context, ChannelConnectedEventArgs* e) +void remmina_rdp_OnChannelDisconnectedEventHandler(void* context, ChannelConnectedEventArgs* 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(context->gdi, (RdpgfxClientContext*) e->pInterface); + gdi_graphics_pipeline_uninit(rfi->context.gdi, (RdpgfxClientContext*) e->pInterface); } REMMINA_PLUGIN_DEBUG("Channel %s has been closed", e->name); |