Files
xserver/dix
Enrico Weigelt, metux IT consult 628eef6bbc include: dix.h: add macros for request handlers and swapping
add some macros for making request handlers easier:

    * REQUEST_HEAD_STRUCT() declares a struct and checks size (assuming
      length field already had been swapped)
    * REQUEST_FIELD_CARD16() swaps a CARD16 (word) if neccessary
    * REQUEST_FIELD_CARD32() swaps a CARD32 (dword) if neccessary

How to use them:

    1. move swapping of lengths field into the SProc*Dispatch() and drop it
       from the individual SProc*()'s
    2. put REQUEST_HEAD_STRUCT() ontop of each Proc*()
    3. add REQUEST_FIELD_*() below, for all fields to be swapped and
       drop their swapping from the SProc*()'s
    4. clean up unnecessary wrappers (SProc*()'s just be just call the
       corresponding Proc*() by now)
    5. let demux SProc just swap length field and call the normal Proc*Dispatch()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-08-29 11:35:06 +02:00
..
2020-07-05 13:07:33 -07:00
2015-07-08 16:41:29 -04:00
2024-04-15 16:19:30 -07:00
2014-11-12 10:25:00 +10:00
2024-04-15 23:10:31 +00:00
2024-03-09 17:23:43 +00:00
2015-04-21 16:57:07 -07:00
2024-04-15 16:19:30 -07:00
2024-04-15 18:11:57 -07:00
2024-03-05 16:57:52 +01:00
2024-03-09 18:01:52 +00:00
2020-07-05 13:07:33 -07:00
2014-11-12 10:25:00 +10:00