enable support for /video and /geometry for win32
#include "wf_cliprdr.h"
#include <freerdp/gdi/gfx.h>
+#include <freerdp/gdi/video.h>
#include <freerdp/log.h>
#define TAG CLIENT_TAG("windows")
@@ -61,6 +62,18 @@ void wf_OnChannelConnectedEventHandler(void* context, ChannelConnectedEventArgs*
{
wfc->disp = (DispClientContext*)e->pInterface;
}
+ else if (strcmp(e->name, GEOMETRY_DVC_CHANNEL_NAME) == 0)
+ {
+ gdi_video_geometry_init(wfc->context.gdi, (GeometryClientContext*)e->pInterface);
+ }
+ else if (strcmp(e->name, VIDEO_CONTROL_DVC_CHANNEL_NAME) == 0)
+ {
+ gdi_video_control_init(wfc->context.gdi, (VideoClientContext*)e->pInterface);
+ }
+ else if (strcmp(e->name, VIDEO_DATA_DVC_CHANNEL_NAME) == 0)
+ {
+ gdi_video_data_init(wfc->context.gdi, (VideoClientContext*)e->pInterface);
+ }
}
void wf_OnChannelDisconnectedEventHandler(void* context, ChannelDisconnectedEventArgs* e)
@@ -90,4 +103,16 @@ void wf_OnChannelDisconnectedEventHandler(void* context, ChannelDisconnectedEven
{
wfc->disp = NULL;
}
+ else if (strcmp(e->name, GEOMETRY_DVC_CHANNEL_NAME) == 0)
+ {
+ gdi_video_geometry_uninit(wfc->context.gdi, (GeometryClientContext*)e->pInterface);
+ }
+ else if (strcmp(e->name, VIDEO_CONTROL_DVC_CHANNEL_NAME) == 0)
+ {
+ gdi_video_control_uninit(wfc->context.gdi, (VideoClientContext*)e->pInterface);
+ }
+ else if (strcmp(e->name, VIDEO_DATA_DVC_CHANNEL_NAME) == 0)
+ {
+ gdi_video_data_uninit(wfc->context.gdi, (VideoClientContext*)e->pInterface);
+ }
}
