From 2d44da22f06571cce1c2ab095d3d15fc37819d7b Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Thu, 28 Feb 2008 18:38:38 -0300 Subject: [PATCH] Add missing prototypes. These prototypes should really be defined elsewhere, but adding them to standard include path would also mean supporting it!? So, this patch basically only avoids missing prototypes warnings. --- src/XTestExt1.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/src/XTestExt1.c b/src/XTestExt1.c index e7dce92..8bce4f3 100644 --- a/src/XTestExt1.c +++ b/src/XTestExt1.c @@ -68,6 +68,69 @@ University of California. #include #include + +/****************************************************************************** + * prototypes + * + * These functions prototypes probably should really be in XTest.h or + * some alternate/new file, possibly even extensions/xtestext1.h + * Listed here to avoid compiler warnings about functions without + * a prototype. + *****************************************************************************/ +extern int XTestFakeInput( + register Display * /* dpy */, + char * /* action_list_addr */, + int /* action_list_size */, + int /* ack_flag */ +); + +extern int XTestGetInput( + register Display * /* dpy */, + int /* action_handling */ +); + +extern int XTestStopInput( + register Display * /* dpy */ +); + +extern int XTestReset( + register Display * /* dpy */ +); + +extern int XTestQueryInputSize( + register Display * /* dpy */, + unsigned long * /* size_return */ +); + +extern int XTestPressKey( + Display * /* display */, + int /* device_id */, + unsigned long /* delay */, + unsigned int /* keycode */, + unsigned int /* key_action */ +); + +extern int XTestPressButton( + Display * /* display */, + int /* device_id */, + unsigned long /* delay */, + unsigned int /* button_number */, + unsigned int /* button_action */ +); + +extern int XTestMovePointer( + Display * /* display */, + int /* device_id */, + unsigned long [] /* delay */, + int [] /* x */, + int [] /* y */, + unsigned int /* count */ +); + +extern int XTestFlush( + Display * /* display */ +); + /****************************************************************************** * variables *****************************************************************************/ -- 1.5.4.3