|
version 3.5, 2002/02/19 11:09:22
|
version 3.6, 2005/03/28 02:51:05
|
|
|
|
| /* $XFree86: xc/programs/Xserver/dix/swapreq.c,v 3.4 2001/12/14 19:59:33 dawes Exp $ */ |
/* $XFree86: xc/programs/Xserver/dix/swapreq.c,v 3.5 2002/02/19 11:09:22 alanh Exp $ */ |
| /************************************************************ | /************************************************************ |
| | |
| Copyright 1987, 1998 The Open Group | Copyright 1987, 1998 The Open Group |
|
|
|
| | |
| ********************************************************/ | ********************************************************/ |
| | |
| /* $Xorg: swapreq.c,v 1.4 2001/02/09 02:04:41 xorgcvs Exp $ */ |
|
| |
|
| #include "X.h" | #include "X.h" |
| #define NEED_EVENTS | #define NEED_EVENTS |
| #include "Xproto.h" | #include "Xproto.h" |
|
|
|
| /* Byte swap a list of longs */ | /* Byte swap a list of longs */ |
| | |
| void | void |
| SwapLongs (list, count) |
SwapLongs(CARD32 *list, unsigned long count) |
| register CARD32 *list; |
|
| register unsigned long count; |
|
| { | { |
| register char n; |
char n; |
| | |
| while (count >= 8) { | while (count >= 8) { |
| swapl(list+0, n); | swapl(list+0, n); |
|
|
|
| /* Byte swap a list of shorts */ | /* Byte swap a list of shorts */ |
| | |
| void | void |
| SwapShorts (list, count) |
SwapShorts(short *list, unsigned long count) |
| register short *list; |
|
| register unsigned long count; |
|
| { | { |
| register char n; |
char n; |
| | |
| while (count >= 16) { | while (count >= 16) { |
| swaps(list+0, n); | swaps(list+0, n); |
|
|
|
| /* The following is used for all requests that have | /* The following is used for all requests that have |
| no fields to be swapped (except "length") */ | no fields to be swapped (except "length") */ |
| int | int |
| SProcSimpleReq(client) |
SProcSimpleReq(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xReq); | REQUEST(xReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| only a single 32-bit field to be swapped, coming | only a single 32-bit field to be swapped, coming |
| right after the "length" field */ | right after the "length" field */ |
| int | int |
| SProcResourceReq(client) |
SProcResourceReq(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xResourceReq); | REQUEST(xResourceReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCreateWindow(client) |
SProcCreateWindow(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xCreateWindowReq); | REQUEST(xCreateWindowReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| } | } |
| | |
| int | int |
| SProcChangeWindowAttributes(client) |
SProcChangeWindowAttributes(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xChangeWindowAttributesReq); | REQUEST(xChangeWindowAttributesReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| } | } |
| | |
| int | int |
| SProcReparentWindow(client) |
SProcReparentWindow(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xReparentWindowReq); | REQUEST(xReparentWindowReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xReparentWindowReq); | REQUEST_SIZE_MATCH(xReparentWindowReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcConfigureWindow(client) |
SProcConfigureWindow(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xConfigureWindowReq); | REQUEST(xConfigureWindowReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xConfigureWindowReq); | REQUEST_AT_LEAST_SIZE(xConfigureWindowReq); |
|
|
|
| | |
| | |
| int | int |
| SProcInternAtom(client) |
SProcInternAtom(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xInternAtomReq); | REQUEST(xInternAtomReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xInternAtomReq); | REQUEST_AT_LEAST_SIZE(xInternAtomReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcChangeProperty(client) |
SProcChangeProperty(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xChangePropertyReq); | REQUEST(xChangePropertyReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xChangePropertyReq); | REQUEST_AT_LEAST_SIZE(xChangePropertyReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcDeleteProperty(client) |
SProcDeleteProperty(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xDeletePropertyReq); | REQUEST(xDeletePropertyReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xDeletePropertyReq); | REQUEST_SIZE_MATCH(xDeletePropertyReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcGetProperty(client) |
SProcGetProperty(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xGetPropertyReq); | REQUEST(xGetPropertyReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xGetPropertyReq); | REQUEST_SIZE_MATCH(xGetPropertyReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcSetSelectionOwner(client) |
SProcSetSelectionOwner(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xSetSelectionOwnerReq); | REQUEST(xSetSelectionOwnerReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xSetSelectionOwnerReq); | REQUEST_SIZE_MATCH(xSetSelectionOwnerReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcConvertSelection(client) |
SProcConvertSelection(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xConvertSelectionReq); | REQUEST(xConvertSelectionReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xConvertSelectionReq); | REQUEST_SIZE_MATCH(xConvertSelectionReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcSendEvent(client) |
SProcSendEvent(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| xEvent eventT; | xEvent eventT; |
| EventSwapPtr proc; | EventSwapPtr proc; |
| REQUEST(xSendEventReq); | REQUEST(xSendEventReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcGrabPointer(client) |
SProcGrabPointer(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xGrabPointerReq); | REQUEST(xGrabPointerReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xGrabPointerReq); | REQUEST_SIZE_MATCH(xGrabPointerReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcGrabButton(client) |
SProcGrabButton(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xGrabButtonReq); | REQUEST(xGrabButtonReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xGrabButtonReq); | REQUEST_SIZE_MATCH(xGrabButtonReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcUngrabButton(client) |
SProcUngrabButton(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xUngrabButtonReq); | REQUEST(xUngrabButtonReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xUngrabButtonReq); | REQUEST_SIZE_MATCH(xUngrabButtonReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcChangeActivePointerGrab(client) |
SProcChangeActivePointerGrab(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xChangeActivePointerGrabReq); | REQUEST(xChangeActivePointerGrabReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xChangeActivePointerGrabReq); | REQUEST_SIZE_MATCH(xChangeActivePointerGrabReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcGrabKeyboard(client) |
SProcGrabKeyboard(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xGrabKeyboardReq); | REQUEST(xGrabKeyboardReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xGrabKeyboardReq); | REQUEST_SIZE_MATCH(xGrabKeyboardReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcGrabKey(client) |
SProcGrabKey(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xGrabKeyReq); | REQUEST(xGrabKeyReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xGrabKeyReq); | REQUEST_SIZE_MATCH(xGrabKeyReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcUngrabKey(client) |
SProcUngrabKey(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xUngrabKeyReq); | REQUEST(xUngrabKeyReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xUngrabKeyReq); | REQUEST_SIZE_MATCH(xUngrabKeyReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcGetMotionEvents(client) |
SProcGetMotionEvents(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xGetMotionEventsReq); | REQUEST(xGetMotionEventsReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xGetMotionEventsReq); | REQUEST_SIZE_MATCH(xGetMotionEventsReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcTranslateCoords(client) |
SProcTranslateCoords(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xTranslateCoordsReq); | REQUEST(xTranslateCoordsReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xTranslateCoordsReq); | REQUEST_SIZE_MATCH(xTranslateCoordsReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcWarpPointer(client) |
SProcWarpPointer(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xWarpPointerReq); | REQUEST(xWarpPointerReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xWarpPointerReq); | REQUEST_SIZE_MATCH(xWarpPointerReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcSetInputFocus(client) |
SProcSetInputFocus(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xSetInputFocusReq); | REQUEST(xSetInputFocusReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xSetInputFocusReq); | REQUEST_SIZE_MATCH(xSetInputFocusReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcOpenFont(client) |
SProcOpenFont(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xOpenFontReq); | REQUEST(xOpenFontReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xOpenFontReq); | REQUEST_AT_LEAST_SIZE(xOpenFontReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcListFonts(client) |
SProcListFonts(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xListFontsReq); | REQUEST(xListFontsReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xListFontsReq); | REQUEST_AT_LEAST_SIZE(xListFontsReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcListFontsWithInfo(client) |
SProcListFontsWithInfo(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xListFontsWithInfoReq); | REQUEST(xListFontsWithInfoReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xListFontsWithInfoReq); | REQUEST_AT_LEAST_SIZE(xListFontsWithInfoReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcSetFontPath(client) |
SProcSetFontPath(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xSetFontPathReq); | REQUEST(xSetFontPathReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xSetFontPathReq); | REQUEST_AT_LEAST_SIZE(xSetFontPathReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCreatePixmap(client) |
SProcCreatePixmap(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCreatePixmapReq); | REQUEST(xCreatePixmapReq); |
| | |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCreateGC(client) |
SProcCreateGC(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCreateGCReq); | REQUEST(xCreateGCReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xCreateGCReq); | REQUEST_AT_LEAST_SIZE(xCreateGCReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcChangeGC(client) |
SProcChangeGC(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xChangeGCReq); | REQUEST(xChangeGCReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xChangeGCReq); | REQUEST_AT_LEAST_SIZE(xChangeGCReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCopyGC(client) |
SProcCopyGC(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCopyGCReq); | REQUEST(xCopyGCReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xCopyGCReq); | REQUEST_SIZE_MATCH(xCopyGCReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcSetDashes(client) |
SProcSetDashes(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xSetDashesReq); | REQUEST(xSetDashesReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xSetDashesReq); | REQUEST_AT_LEAST_SIZE(xSetDashesReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcSetClipRectangles(client) |
SProcSetClipRectangles(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xSetClipRectanglesReq); | REQUEST(xSetClipRectanglesReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xSetClipRectanglesReq); | REQUEST_AT_LEAST_SIZE(xSetClipRectanglesReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcClearToBackground(client) |
SProcClearToBackground(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xClearAreaReq); | REQUEST(xClearAreaReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xClearAreaReq); | REQUEST_SIZE_MATCH(xClearAreaReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCopyArea(client) |
SProcCopyArea(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCopyAreaReq); | REQUEST(xCopyAreaReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xCopyAreaReq); | REQUEST_SIZE_MATCH(xCopyAreaReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCopyPlane(client) |
SProcCopyPlane(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCopyPlaneReq); | REQUEST(xCopyPlaneReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xCopyPlaneReq); | REQUEST_SIZE_MATCH(xCopyPlaneReq); |
|
|
|
| /* The following routine is used for all Poly drawing requests | /* The following routine is used for all Poly drawing requests |
| (except FillPoly, which uses a different request format) */ | (except FillPoly, which uses a different request format) */ |
| int | int |
| SProcPoly(client) |
SProcPoly(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xPolyPointReq); | REQUEST(xPolyPointReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| is longer than xPolyPointReq, and we don't want to swap | is longer than xPolyPointReq, and we don't want to swap |
| the difference as shorts! */ | the difference as shorts! */ |
| int | int |
| SProcFillPoly(client) |
SProcFillPoly(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xFillPolyReq); | REQUEST(xFillPolyReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| } | } |
| | |
| int | int |
| SProcPutImage(client) |
SProcPutImage(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xPutImageReq); | REQUEST(xPutImageReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xPutImageReq); | REQUEST_AT_LEAST_SIZE(xPutImageReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcGetImage(client) |
SProcGetImage(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xGetImageReq); | REQUEST(xGetImageReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xGetImageReq); | REQUEST_SIZE_MATCH(xGetImageReq); |
|
|
|
| /* ProcPolyText used for both PolyText8 and PolyText16 */ | /* ProcPolyText used for both PolyText8 and PolyText16 */ |
| | |
| int | int |
| SProcPolyText(client) |
SProcPolyText(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xPolyTextReq); | REQUEST(xPolyTextReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xPolyTextReq); | REQUEST_AT_LEAST_SIZE(xPolyTextReq); |
|
|
|
| /* ProcImageText used for both ImageText8 and ImageText16 */ | /* ProcImageText used for both ImageText8 and ImageText16 */ |
| | |
| int | int |
| SProcImageText(client) |
SProcImageText(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xImageTextReq); | REQUEST(xImageTextReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xImageTextReq); | REQUEST_AT_LEAST_SIZE(xImageTextReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCreateColormap(client) |
SProcCreateColormap(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCreateColormapReq); | REQUEST(xCreateColormapReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xCreateColormapReq); | REQUEST_SIZE_MATCH(xCreateColormapReq); |
|
|
|
| | |
| | |
| int | int |
| SProcCopyColormapAndFree(client) |
SProcCopyColormapAndFree(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCopyColormapAndFreeReq); | REQUEST(xCopyColormapAndFreeReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xCopyColormapAndFreeReq); | REQUEST_SIZE_MATCH(xCopyColormapAndFreeReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcAllocColor (client) |
SProcAllocColor(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xAllocColorReq); | REQUEST(xAllocColorReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xAllocColorReq); | REQUEST_SIZE_MATCH(xAllocColorReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcAllocNamedColor (client) |
SProcAllocNamedColor(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xAllocNamedColorReq); | REQUEST(xAllocNamedColorReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| } | } |
| | |
| int | int |
| SProcAllocColorCells (client) |
SProcAllocColorCells(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xAllocColorCellsReq); | REQUEST(xAllocColorCellsReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xAllocColorCellsReq); | REQUEST_SIZE_MATCH(xAllocColorCellsReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcAllocColorPlanes(client) |
SProcAllocColorPlanes(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xAllocColorPlanesReq); | REQUEST(xAllocColorPlanesReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xAllocColorPlanesReq); | REQUEST_SIZE_MATCH(xAllocColorPlanesReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcFreeColors (client) |
SProcFreeColors(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xFreeColorsReq); | REQUEST(xFreeColorsReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xFreeColorsReq); | REQUEST_AT_LEAST_SIZE(xFreeColorsReq); |
|
|
|
| } | } |
| | |
| void | void |
| SwapColorItem(pItem) |
SwapColorItem(xColorItem *pItem) |
| xColorItem *pItem; |
|
| { | { |
| register char n; |
char n; |
| | |
| swapl(&pItem->pixel, n); | swapl(&pItem->pixel, n); |
| swaps(&pItem->red, n); | swaps(&pItem->red, n); |
|
|
|
| } | } |
| | |
| int | int |
| SProcStoreColors (client) |
SProcStoreColors(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| long count; | long count; |
| xColorItem *pItem; | xColorItem *pItem; |
| | |
|
|
|
| } | } |
| | |
| int | int |
| SProcStoreNamedColor (client) |
SProcStoreNamedColor(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xStoreNamedColorReq); | REQUEST(xStoreNamedColorReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xStoreNamedColorReq); | REQUEST_AT_LEAST_SIZE(xStoreNamedColorReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcQueryColors(client) |
SProcQueryColors(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xQueryColorsReq); | REQUEST(xQueryColorsReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xQueryColorsReq); | REQUEST_AT_LEAST_SIZE(xQueryColorsReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcLookupColor(client) |
SProcLookupColor(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xLookupColorReq); | REQUEST(xLookupColorReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xLookupColorReq); | REQUEST_AT_LEAST_SIZE(xLookupColorReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCreateCursor( client) |
SProcCreateCursor(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCreateCursorReq); | REQUEST(xCreateCursorReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xCreateCursorReq); | REQUEST_SIZE_MATCH(xCreateCursorReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcCreateGlyphCursor( client) |
SProcCreateGlyphCursor(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xCreateGlyphCursorReq); | REQUEST(xCreateGlyphCursorReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xCreateGlyphCursorReq); | REQUEST_SIZE_MATCH(xCreateGlyphCursorReq); |
|
|
|
| | |
| | |
| int | int |
| SProcRecolorCursor(client) |
SProcRecolorCursor(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xRecolorCursorReq); | REQUEST(xRecolorCursorReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xRecolorCursorReq); | REQUEST_SIZE_MATCH(xRecolorCursorReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcQueryBestSize (client) |
SProcQueryBestSize(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xQueryBestSizeReq); | REQUEST(xQueryBestSizeReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xQueryBestSizeReq); | REQUEST_SIZE_MATCH(xQueryBestSizeReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcQueryExtension (client) |
SProcQueryExtension(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xQueryExtensionReq); | REQUEST(xQueryExtensionReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xQueryExtensionReq); | REQUEST_AT_LEAST_SIZE(xQueryExtensionReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcChangeKeyboardMapping (client) |
SProcChangeKeyboardMapping(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xChangeKeyboardMappingReq); | REQUEST(xChangeKeyboardMappingReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xChangeKeyboardMappingReq); | REQUEST_AT_LEAST_SIZE(xChangeKeyboardMappingReq); |
|
|
|
| | |
| | |
| int | int |
| SProcChangeKeyboardControl (client) |
SProcChangeKeyboardControl(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xChangeKeyboardControlReq); | REQUEST(xChangeKeyboardControlReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xChangeKeyboardControlReq); | REQUEST_AT_LEAST_SIZE(xChangeKeyboardControlReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcChangePointerControl (client) |
SProcChangePointerControl(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xChangePointerControlReq); | REQUEST(xChangePointerControlReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xChangePointerControlReq); | REQUEST_SIZE_MATCH(xChangePointerControlReq); |
|
|
|
| | |
| | |
| int | int |
| SProcSetScreenSaver (client) |
SProcSetScreenSaver(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xSetScreenSaverReq); | REQUEST(xSetScreenSaverReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_SIZE_MATCH(xSetScreenSaverReq); | REQUEST_SIZE_MATCH(xSetScreenSaverReq); |
|
|
|
| } | } |
| | |
| int | int |
| SProcChangeHosts(client) |
SProcChangeHosts(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| | |
| REQUEST(xChangeHostsReq); | REQUEST(xChangeHostsReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
|
|
|
| | |
| } | } |
| | |
| int SProcRotateProperties(client) |
int SProcRotateProperties(ClientPtr client) |
| register ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xRotatePropertiesReq); | REQUEST(xRotatePropertiesReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| REQUEST_AT_LEAST_SIZE(xRotatePropertiesReq); | REQUEST_AT_LEAST_SIZE(xRotatePropertiesReq); |
|
|
|
| | |
| /*ARGSUSED*/ | /*ARGSUSED*/ |
| int | int |
| SProcNoOperation(client) |
SProcNoOperation(ClientPtr client) |
| ClientPtr client; |
|
| { | { |
| register char n; |
char n; |
| REQUEST(xReq); | REQUEST(xReq); |
| swaps(&stuff->length, n); | swaps(&stuff->length, n); |
| return ((* ProcVector[X_NoOperation])(client)); | return ((* ProcVector[X_NoOperation])(client)); |
| } | } |
| | |
| void | void |
| SwapConnClientPrefix(pCCP) |
SwapConnClientPrefix(xConnClientPrefix *pCCP) |
| xConnClientPrefix *pCCP; |
|
| { | { |
| register char n; |
char n; |
| | |
| swaps(&pCCP->majorVersion, n); | swaps(&pCCP->majorVersion, n); |
| swaps(&pCCP->minorVersion, n); | swaps(&pCCP->minorVersion, n); |