41 #include <freerdp/freerdp.h> 42 #include <freerdp/channels/channels.h> 43 #include <freerdp/client/cliprdr.h> 44 #include <freerdp/gdi/gfx.h> 52 if (g_strcmp0(e->name, RDPEI_DVC_CHANNEL_NAME) == 0) {
53 g_print(
"Unimplemented: channel %s connected but we can’t use it\n", e->name);
55 }
else if (g_strcmp0(e->name, TSMF_DVC_CHANNEL_NAME) == 0) {
56 g_print(
"Unimplemented: channel %s connected but we can’t use it\n", e->name);
58 }
else if (g_strcmp0(e->name, RDPGFX_DVC_CHANNEL_NAME) == 0) {
59 if (freerdp_settings_get_bool(rfi->
settings, FreeRDP_SoftwareGdi)) {
61 gdi_graphics_pipeline_init(rfi->
context.gdi, (RdpgfxClientContext*) e->pInterface);
64 g_print(
"Unimplemented: channel %s connected but libfreerdp is in HardwareGdi mode\n", e->name);
65 }
else if (g_strcmp0(e->name, RAIL_SVC_CHANNEL_NAME) == 0) {
66 g_print(
"Unimplemented: channel %s connected but we can’t use it\n", e->name);
68 }
else if (g_strcmp0(e->name, CLIPRDR_SVC_CHANNEL_NAME) == 0) {
70 }
else if (g_strcmp0(e->name, ENCOMSP_SVC_CHANNEL_NAME) == 0) {
71 g_print(
"Unimplemented: channel %s connected but we can’t use it\n", e->name);
73 }
else if (g_strcmp0(e->name, DISP_DVC_CHANNEL_NAME) == 0) {
75 rfi->
dispcontext = (DispClientContext*)e->pInterface;
83 REMMINA_PLUGIN_DEBUG(
"Channel %s has been opened", e->name);
91 if (strcmp(e->name, RDPGFX_DVC_CHANNEL_NAME) == 0) {
92 if (freerdp_settings_get_bool(rfi->
settings, FreeRDP_SoftwareGdi))
93 gdi_graphics_pipeline_uninit(rfi->
context.gdi, (RdpgfxClientContext*) e->pInterface);
95 REMMINA_PLUGIN_DEBUG(
"Channel %s has been closed", e->name);
void remmina_rdp_cliprdr_init(rfContext *rfi, CliprdrClientContext *cliprdr)
RemminaProtocolWidget * protocol_widget
void remmina_rdp_OnChannelConnectedEventHandler(void *context, ChannelConnectedEventArgs *e)
void(* protocol_plugin_unlock_dynres)(RemminaProtocolWidget *gp)
static RemminaPluginService * remmina_plugin_service
void remmina_rdp_event_send_delayed_monitor_layout(RemminaProtocolWidget *gp)
void remmina_rdp_OnChannelDisconnectedEventHandler(void *context, ChannelDisconnectedEventArgs *e)
DispClientContext * dispcontext