20 #include <freerdp/config.h>
22 #include <freerdp/gdi/gfx.h>
24 #include <freerdp/gdi/video.h>
26 #include "wlf_channels.h"
27 #include "wlf_cliprdr.h"
29 #include "wlfreerdp.h"
31 void wlf_OnChannelConnectedEventHandler(
void* context,
const ChannelConnectedEventArgs* e)
41 else if (strcmp(e->name, RAIL_SVC_CHANNEL_NAME) == 0)
44 else if (strcmp(e->name, CLIPRDR_SVC_CHANNEL_NAME) == 0)
46 wlf_cliprdr_init(wlf->clipboard, (CliprdrClientContext*)e->pInterface);
48 else if (strcmp(e->name, DISP_DVC_CHANNEL_NAME) == 0)
50 wlf_disp_init(wlf->disp, (DispClientContext*)e->pInterface);
53 freerdp_client_OnChannelConnectedEventHandler(context, e);
56 void wlf_OnChannelDisconnectedEventHandler(
void* context,
const ChannelDisconnectedEventArgs* e)
66 else if (strcmp(e->name, RAIL_SVC_CHANNEL_NAME) == 0)
69 else if (strcmp(e->name, CLIPRDR_SVC_CHANNEL_NAME) == 0)
71 wlf_cliprdr_uninit(wlf->clipboard, (CliprdrClientContext*)e->pInterface);
73 else if (strcmp(e->name, DISP_DVC_CHANNEL_NAME) == 0)
75 wlf_disp_uninit(wlf->disp, (DispClientContext*)e->pInterface);
78 freerdp_client_OnChannelDisconnectedEventHandler(context, e);