video, geometry: fix prototypes for timer callbacks

This commit is contained in:
David Fort 2018-02-14 10:12:32 +01:00
parent 484abe0567
commit 441975a4aa
2 changed files with 6 additions and 4 deletions

View File

@ -146,8 +146,9 @@ static void xf_disp_OnGraphicsReset(rdpContext* context, GraphicsResetEventArgs*
}
}
static void xf_disp_OnTimer(rdpContext* context, TimerEventArgs* e)
static void xf_disp_OnTimer(void* voidContext, TimerEventArgs* e)
{
rdpContext* context = (rdpContext *)voidContext;
xfContext *xfc = (xfContext *)context;
xfDispContext *xfDisp = xfc->xfDisp;
rdpSettings *settings = context->settings;

View File

@ -140,8 +140,9 @@ void gdi_video_control_uninit(rdpGdi* gdi, VideoClientContext* video)
gdi->video = NULL;
}
static void gdi_video_timer(rdpContext *ctx, TimerEventArgs* timer)
static void gdi_video_timer(void *voidContext, TimerEventArgs* timer)
{
rdpContext *ctx = (rdpContext *)voidContext;
rdpGdi* gdi = ctx->gdi;
if (gdi && gdi->video)
@ -150,10 +151,10 @@ static void gdi_video_timer(rdpContext *ctx, TimerEventArgs* timer)
void gdi_video_data_init(rdpGdi* gdi, VideoClientContext* video)
{
PubSub_SubscribeTimer(gdi->context->pubSub, (pTimerEventHandler)gdi_video_timer);
PubSub_SubscribeTimer(gdi->context->pubSub, gdi_video_timer);
}
void gdi_video_data_uninit(rdpGdi* gdi, VideoClientContext* context)
{
PubSub_UnsubscribeTimer(gdi->context->pubSub, (pTimerEventHandler)gdi_video_timer);
PubSub_UnsubscribeTimer(gdi->context->pubSub, gdi_video_timer);
}