FreeRDP
wlf_channels.c
1 
20 #include <freerdp/config.h>
21 
22 #include <freerdp/gdi/gfx.h>
23 
24 #include <freerdp/gdi/video.h>
25 
26 #include "wlf_channels.h"
27 #include "wlf_cliprdr.h"
28 #include "wlf_disp.h"
29 #include "wlfreerdp.h"
30 
31 void wlf_OnChannelConnectedEventHandler(void* context, const ChannelConnectedEventArgs* e)
32 {
33  wlfContext* wlf = (wlfContext*)context;
34 
35  WINPR_ASSERT(wlf);
36  WINPR_ASSERT(e);
37 
38  if (FALSE)
39  {
40  }
41  else if (strcmp(e->name, RAIL_SVC_CHANNEL_NAME) == 0)
42  {
43  }
44  else if (strcmp(e->name, CLIPRDR_SVC_CHANNEL_NAME) == 0)
45  {
46  wlf_cliprdr_init(wlf->clipboard, (CliprdrClientContext*)e->pInterface);
47  }
48  else if (strcmp(e->name, DISP_DVC_CHANNEL_NAME) == 0)
49  {
50  wlf_disp_init(wlf->disp, (DispClientContext*)e->pInterface);
51  }
52  else
53  freerdp_client_OnChannelConnectedEventHandler(context, e);
54 }
55 
56 void wlf_OnChannelDisconnectedEventHandler(void* context, const ChannelDisconnectedEventArgs* e)
57 {
58  wlfContext* wlf = (wlfContext*)context;
59 
60  WINPR_ASSERT(wlf);
61  WINPR_ASSERT(e);
62 
63  if (FALSE)
64  {
65  }
66  else if (strcmp(e->name, RAIL_SVC_CHANNEL_NAME) == 0)
67  {
68  }
69  else if (strcmp(e->name, CLIPRDR_SVC_CHANNEL_NAME) == 0)
70  {
71  wlf_cliprdr_uninit(wlf->clipboard, (CliprdrClientContext*)e->pInterface);
72  }
73  else if (strcmp(e->name, DISP_DVC_CHANNEL_NAME) == 0)
74  {
75  wlf_disp_uninit(wlf->disp, (DispClientContext*)e->pInterface);
76  }
77  else
78  freerdp_client_OnChannelDisconnectedEventHandler(context, e);
79 }