21 #include <freerdp/config.h>
23 #include <winpr/assert.h>
24 #include <freerdp/gdi/gfx.h>
26 #include <freerdp/client/rdpei.h>
27 #include <freerdp/client/rail.h>
28 #include <freerdp/client/cliprdr.h>
29 #include <freerdp/client/rdpgfx.h>
30 #include <freerdp/client/encomsp.h>
32 #include "tf_channels.h"
33 #include "tf_freerdp.h"
35 static UINT tf_update_surfaces(RdpgfxClientContext* context)
37 WINPR_UNUSED(context);
41 void tf_OnChannelConnectedEventHandler(
void* context,
const ChannelConnectedEventArgs* e)
48 if (strcmp(e->name, RAIL_SVC_CHANNEL_NAME) == 0)
51 else if (strcmp(e->name, CLIPRDR_SVC_CHANNEL_NAME) == 0)
53 CliprdrClientContext* clip = (CliprdrClientContext*)e->pInterface;
55 clip->custom = context;
58 freerdp_client_OnChannelConnectedEventHandler(&tf->common, e);
61 void tf_OnChannelDisconnectedEventHandler(
void* context,
const ChannelDisconnectedEventArgs* e)
68 if (strcmp(e->name, RAIL_SVC_CHANNEL_NAME) == 0)
71 else if (strcmp(e->name, CLIPRDR_SVC_CHANNEL_NAME) == 0)
73 CliprdrClientContext* clip = (CliprdrClientContext*)e->pInterface;
78 freerdp_client_OnChannelDisconnectedEventHandler(&tf->common, e);