xserver-multidpi/hw/xnest
Peter Hutterer 675f4a8525 Abstract valuator masks through a set of APIs.
This commit introduces an abstraction API for handling masked valuators. The
intent is that drivers just allocate a mask, set the data and pass the mask
to the server. The actual storage type of the mask is hidden from the
drivers.

The new calls for drivers are:
    valuator_mask_new()     /* to allocate a valuator mask */
    valuator_mask_zero()    /* to reset a mask to zero */
    valuator_mask_set()     /* to set a valuator value */

The new interface to the server is
    xf86PostMotionEventM()
    xf86PostButtonEventM()
    xf86PostKeyboardEventM()
    xf86PostProximityEventM()

all taking a mask instead of the valuator array.

The ValuatorMask is currently defined for MAX_VALUATORS fixed size due to
memory allocation restrictions in SIGIO handlers.

For easier review, a lot of the code still uses separate valuator arrays.
This will be fixed in a later patch.

This patch was initially written by Chase Douglas.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2010-10-22 11:02:48 +10:00
..
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Args.c xnest: ANSI cleanups 2009-01-11 08:54:11 +01:00
Args.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Color.c xnest: Replace use of Colormap->devPriv with standard devPrivates. 2010-09-13 15:55:17 -07:00
Color.h xnest: Replace use of Colormap->devPriv with standard devPrivates. 2010-09-13 15:55:17 -07:00
Cursor.c xnest: Don't ignore errors from DeviceCursorInitialize. 2010-05-25 09:05:22 -07:00
Display.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
Display.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Drawable.h Fix a couple more possible errors with input-only windows 2010-06-10 19:15:28 -07:00
Events.c Abstract valuator masks through a set of APIs. 2010-10-22 11:02:48 +10:00
Events.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Font.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
GC.c Delete redundant GC initializations. 2010-09-13 15:55:17 -07:00
GCOps.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
GCOps.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Handlers.c Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Handlers.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
icon R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
Init.c dix: move config_init into the DDX. 2010-02-15 09:15:18 +10:00
Init.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Keyboard.c dix: purge leftover manual key down bit setting. 2010-07-07 13:29:46 +10:00
Keyboard.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Makefile.am Fix .man.N targets for AM_SILENT_RULES 2010-03-22 00:45:55 -05:00
Pixmap.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
Pointer.c Xnest: set the default pointer accel to the host's values (#10013) 2009-09-09 10:47:08 +10:00
Pointer.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Screen.c xnest: Replace use of Colormap->devPriv with standard devPrivates. 2010-09-13 15:55:17 -07:00
Screen.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
screensaver R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
Visual.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
Visual.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Window.c Clean up after removal of screen parameters from region macros. 2010-06-05 22:07:21 -07:00
XNCursor.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xnest-config.h get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE 2006-07-18 18:17:38 -04:00
Xnest.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Xnest.man.pre Fix up xnest manpage 2007-05-28 21:39:12 -04:00
XNFont.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
XNGC.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
XNPixmap.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
XNWindow.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00