xserver-multidpi/Xext
Alan Coopersmith a2a5254675 Add <string.h>, <stdlib.h>, and <stdio.h> to clear undefined function
warnings after the removal of libcwrapper headers.
2006-02-11 19:16:51 +00:00
..
appgroup.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
appgroup.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
bigreq.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
cup.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
dpms.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
dpmsproc.h Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
dpmsstubs.c Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
EVI.c Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
EVIstruct.h Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
fontcache.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
Makefile.am Wrap sdk_HEADERS in if XORG as otherwise installing non-xorg servers 2006-01-18 06:56:52 +00:00
mbuf.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
mbufbf.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
mbufpx.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
mitmisc.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
panoramiX.c Add #include <dmx-config.h> for building dmx/glxProxy in the modular tree. 2005-07-27 08:16:35 +00:00
panoramiX.h Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
panoramiXh.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
panoramiXprocs.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
panoramiXsrv.h Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
panoramiXSwap.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
README.xtest1-ddx R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
sampleEVI.c Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
saver.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
security.c Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
SecurityPolicy R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
shape.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
shm.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
shmint.h Merge from xserver a header for shm's server internal functions, which are 2005-12-28 10:37:17 +00:00
sleepuntil.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
sleepuntil.h Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
sync.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
xcmisc.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
xevie.c Sun bug #6326551: xkbSetDetectableAutoRepeat broken when using XEvIE 2005-10-06 17:55:54 +00:00
xf86bigfont.c See ChangeLog entry 2005-11-07 for details. 2005-11-08 06:33:30 +00:00
xprint.c Add buildsystem for Xprint, and: 2005-08-17 19:03:18 +00:00
xres.c Add <string.h>, <stdlib.h>, and <stdio.h> to clear undefined function 2006-02-11 19:16:51 +00:00
xtest.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
xtest1dd.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
xtest1dd.h Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings. 2005-07-03 07:02:09 +00:00
xtest1di.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
xvdisp.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
xvdisp.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
xvdix.h Remove use of dix-config and xorg-config.h from public headers. 2005-08-24 11:18:35 +00:00
xvmain.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
xvmc.c Remove libcwrapper usage from xorg server modules. The libcwrapper is only 2006-02-10 22:00:30 +00:00
xvmcext.h Remove use of dix-config and xorg-config.h from public headers. 2005-08-24 11:18:35 +00:00

There are several code fragments that need to be placed in the device
dependent part of the server.  These are described below.  These code
fragments are device and implementation dependent.

This code fragment should go in your ddx InitInput() routine:

#ifdef XTESTEXT1
extern KeyCode xtest_command_key;
#endif

#ifdef XTESTEXT1
    xtest_command_key = <whatever-is-a-good-keycode-for-your-keyboard>;
#endif

This code fragment should go at the front of the file that handles
keyboards:

#ifdef XTESTEXT1
/*
 * defined in xtestext1di.c
 */
extern int	on_steal_input;
extern Bool	XTestStealKeyData();
#endif XTESTEXT1

This code fragment should go in the function that parses input from the
keyboard or pointer after you know what input action has occurred, but before
you have told the server about it.  If conditionalizes the actual function
call to pass the information on:

#ifdef XTESTEXT1
	if (!on_steal_input ||
	    XTestStealKeyData(code, direction, dev_type, x, y))
#endif /* XTESTEXT1 */
	handle_device_event(...);

This code fragment should go in the function that handles mouse motion after
you have figured out how much the mouse has moved:

#ifdef XTESTEXT1
	if (on_steal_input)
	    XTestStealMotionData(dx, dy, dev, x, y);
#endif XTESTEXT1


This code fragment should go at the front of the os-specific code where
you wait (by doing a select on the socket in our implementation) for
something to happen:

#ifdef	XTESTEXT1
extern int	playback_on;
void XTestComputeWaitTime();
#endif  XTESTEXT1

These code fragments should go in the os-specific code on both sides of
where you wait (by doing a select on the socket in our implementation)
for something to happen:

#ifdef XTESTEXT1
	    if (playback_on)
		    XTestComputeWaitTime(wt = &waittime);
#endif XTESTEXT1
	    ... code to do select ...
	    WakeupHandler(i, LastSelectMask);
#ifdef XTESTEXT1
	    if (playback_on)
		    i = XTestProcessInputAction(i, &waittime);
#endif XTESTEXT1


You also need to implement the following routines (documentation
is needed; for now, see server/ddx/hp/hp/x_hil.c):

void
XTestGenerateEvent(dev_type, keycode, keystate, mousex, mousey)
	int	dev_type;
	int	keycode;
	int	keystate;
	int	mousex;
	int	mousey;

void
XTestGetPointerPos(fmousex, fmousey)
	short *fmousex, *fmousey;

void
XTestJumpPointer(jx, jy, dev_type)
	int	jx;
	int	jy;
	int	dev_type;