From 10d7948e0360860e1e9633dca39f646d492e73bf Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 7 Aug 2009 10:17:14 +1000 Subject: [PATCH] test: fix build error introduced by new AllocDevicePair API Signed-off-by: Peter Hutterer --- test/xi2/protocol-common.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c index 1a4ad2431..fc10698c9 100644 --- a/test/xi2/protocol-common.c +++ b/test/xi2/protocol-common.c @@ -37,6 +37,8 @@ WindowRec window; void *userdata; +extern int CorePointerProc(DeviceIntPtr pDev, int what); +extern int CoreKeyboardProc(DeviceIntPtr pDev, int what); /** * Create and init 2 master devices (VCP + VCK) and two slave devices, one * default mouse, one default keyboard. @@ -48,7 +50,8 @@ struct devices init_devices(void) client = init_client(0, NULL); - AllocDevicePair(&client, "Virtual core", &devices.vcp, &devices.vck, TRUE); + AllocDevicePair(&client, "Virtual core", &devices.vcp, &devices.vck, + CorePointerProc, CoreKeyboardProc, TRUE); inputInfo.pointer = devices.vcp; inputInfo.keyboard = devices.vck; ActivateDevice(devices.vcp, FALSE); @@ -56,7 +59,8 @@ struct devices init_devices(void) EnableDevice(devices.vcp, FALSE); EnableDevice(devices.vck, FALSE); - AllocDevicePair(&client, "", &devices.mouse, &devices.kbd, FALSE); + AllocDevicePair(&client, "", &devices.mouse, &devices.kbd, + CorePointerProc, CoreKeyboardProc, FALSE); ActivateDevice(devices.mouse, FALSE); ActivateDevice(devices.kbd, FALSE); EnableDevice(devices.mouse, FALSE);