diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 20:41:31 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 20:41:31 -0200 |
commit | 3237cc5b45a41ffe93ebde10b1090a7f2db6f88e (patch) | |
tree | cf72fc42b228c96d517d5e5ba3abea3b4641122a /src/XTest.c | |
parent | 48544103324d1816139dfafe5873a11c88ee05b6 (diff) |
Janitor: ansification, make distcheck, compiler warnings.
Manual page generation, and xmlto handling, shamelessly cut&paste'd
from libXi/man/Makefile.am, so that make distcheck will work.
Diffstat (limited to 'src/XTest.c')
-rw-r--r-- | src/XTest.c | 100 |
1 files changed, 26 insertions, 74 deletions
diff --git a/src/XTest.c b/src/XTest.c index 82ad52a..45f593e 100644 --- a/src/XTest.c +++ b/src/XTest.c @@ -97,11 +97,9 @@ static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xtest_info) *****************************************************************************/ Bool -XTestQueryExtension (dpy, event_base_return, error_base_return, - major_return, minor_return) - Display *dpy; - int *event_base_return, *error_base_return; - int *major_return, *minor_return; +XTestQueryExtension (Display *dpy, + int *event_base_return, int *error_base_return, + int *major_return, int *minor_return) { XExtDisplayInfo *info = find_display (dpy); register xXTestGetVersionReq *req; @@ -132,10 +130,7 @@ XTestQueryExtension (dpy, event_base_return, error_base_return, } Bool -XTestCompareCursorWithWindow(dpy, window, cursor) - Display *dpy; - Window window; - Cursor cursor; +XTestCompareCursorWithWindow(Display *dpy, Window window, Cursor cursor) { XExtDisplayInfo *info = find_display (dpy); register xXTestCompareCursorReq *req; @@ -160,19 +155,14 @@ XTestCompareCursorWithWindow(dpy, window, cursor) } Bool -XTestCompareCurrentCursorWithWindow(dpy, window) - Display *dpy; - Window window; +XTestCompareCurrentCursorWithWindow(Display *dpy, Window window) { return XTestCompareCursorWithWindow(dpy, window, XTestCurrentCursor); } int -XTestFakeKeyEvent(dpy, keycode, is_press, delay) - Display *dpy; - unsigned int keycode; - Bool is_press; - unsigned long delay; +XTestFakeKeyEvent(Display *dpy, unsigned int keycode, + Bool is_press, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -192,11 +182,8 @@ XTestFakeKeyEvent(dpy, keycode, is_press, delay) } int -XTestFakeButtonEvent(dpy, button, is_press, delay) - Display *dpy; - unsigned int button; - Bool is_press; - unsigned long delay; +XTestFakeButtonEvent(Display *dpy, unsigned int button, + Bool is_press, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -216,11 +203,7 @@ XTestFakeButtonEvent(dpy, button, is_press, delay) } int -XTestFakeMotionEvent(dpy, screen, x, y, delay) - Display *dpy; - int screen; - int x, y; - unsigned long delay; +XTestFakeMotionEvent(Display *dpy, int screen, int x, int y, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -246,10 +229,7 @@ XTestFakeMotionEvent(dpy, screen, x, y, delay) } int -XTestFakeRelativeMotionEvent(dpy, dx, dy, delay) - Display *dpy; - int dx, dy; - unsigned long delay; +XTestFakeRelativeMotionEvent(Display *dpy, int dx, int dy, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -316,14 +296,9 @@ send_axes( } int -XTestFakeDeviceKeyEvent(dpy, dev, keycode, is_press, axes, n_axes, delay) - Display *dpy; - XDevice *dev; - unsigned int keycode; - Bool is_press; - int *axes; - int n_axes; - unsigned long delay; +XTestFakeDeviceKeyEvent(Display *dpy, XDevice *dev, + unsigned int keycode, Bool is_press, + int *axes, int n_axes, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -347,14 +322,9 @@ XTestFakeDeviceKeyEvent(dpy, dev, keycode, is_press, axes, n_axes, delay) } int -XTestFakeDeviceButtonEvent(dpy, dev, button, is_press, axes, n_axes, delay) - Display *dpy; - XDevice *dev; - unsigned int button; - Bool is_press; - int *axes; - int n_axes; - unsigned long delay; +XTestFakeDeviceButtonEvent(Display *dpy, XDevice *dev, + unsigned int button, Bool is_press, + int *axes, int n_axes, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -378,13 +348,8 @@ XTestFakeDeviceButtonEvent(dpy, dev, button, is_press, axes, n_axes, delay) } int -XTestFakeProximityEvent(dpy, dev, in_prox, axes, n_axes, delay) - Display *dpy; - XDevice *dev; - Bool in_prox; - int *axes; - int n_axes; - unsigned long delay; +XTestFakeProximityEvent(Display *dpy, XDevice *dev, Bool in_prox, + int *axes, int n_axes, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -407,15 +372,9 @@ XTestFakeProximityEvent(dpy, dev, in_prox, axes, n_axes, delay) } int -XTestFakeDeviceMotionEvent(dpy, dev, is_relative, - first_axis, axes, n_axes, delay) - Display *dpy; - XDevice *dev; - Bool is_relative; - int first_axis; - int *axes; - int n_axes; - unsigned long delay; +XTestFakeDeviceMotionEvent(Display *dpy, XDevice *dev, + Bool is_relative, int first_axis, + int *axes, int n_axes, unsigned long delay) { XExtDisplayInfo *info = find_display (dpy); register xXTestFakeInputReq *req; @@ -437,9 +396,7 @@ XTestFakeDeviceMotionEvent(dpy, dev, is_relative, } int -XTestGrabControl(dpy, impervious) - Display *dpy; - Bool impervious; +XTestGrabControl(Display *dpy, Bool impervious) { XExtDisplayInfo *info = find_display (dpy); register xXTestGrabControlReq *req; @@ -457,17 +414,13 @@ XTestGrabControl(dpy, impervious) } void -XTestSetGContextOfGC(gc, gid) - GC gc; - GContext gid; +XTestSetGContextOfGC(GC gc, GContext gid) { gc->gid = gid; } void -XTestSetVisualIDOfVisual(visual, visualid) - Visual *visual; - VisualID visualid; +XTestSetVisualIDOfVisual(Visual *visual, VisualID visualid) { visual->visualid = visualid; } @@ -477,8 +430,7 @@ static xReq _dummy_request = { }; Status -XTestDiscard(dpy) - Display *dpy; +XTestDiscard(Display *dpy) { Bool something; register char *ptr; |