diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:57 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:57 +0000 |
commit | 9508a382f8a9f241dab097d921b6d290c1c3a776 (patch) | |
tree | fa456480bae7040c3f971a70b390f2d091c680b5 /include | |
parent | ded6147bfb5d75ff1e67c858040a628b61bc17d1 (diff) |
Initial revision
Diffstat (limited to 'include')
-rw-r--r-- | include/XIstubs.h | 101 | ||||
-rw-r--r-- | include/bstore.h | 23 | ||||
-rw-r--r-- | include/bstorestr.h | 75 | ||||
-rw-r--r-- | include/dixevents.h | 214 | ||||
-rw-r--r-- | include/dixgrabs.h | 79 | ||||
-rw-r--r-- | include/exevents.h | 275 | ||||
-rw-r--r-- | include/extinit.h | 212 | ||||
-rw-r--r-- | include/globals.h | 52 | ||||
-rw-r--r-- | include/swaprep.h | 542 | ||||
-rw-r--r-- | include/swapreq.h | 140 |
10 files changed, 1713 insertions, 0 deletions
diff --git a/include/XIstubs.h b/include/XIstubs.h new file mode 100644 index 000000000..156c4e34e --- /dev/null +++ b/include/XIstubs.h @@ -0,0 +1,101 @@ +/* $XFree86: xc/programs/Xserver/include/XIstubs.h,v 3.1 1996/04/15 11:34:22 dawes Exp $ */ +/************************************************************ + +Copyright 1996 by Thomas E. Dickey <dickey@clark.net> + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of the above listed +copyright holder(s) not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********************************************************/ + +#ifndef XI_STUBS_H +#define XI_STUBS_H 1 + +int +ChangeKeyboardDevice ( +#if NeedFunctionPrototypes + DeviceIntPtr /* old_dev */, + DeviceIntPtr /* new_dev */ +#endif + ); + +int +ChangePointerDevice ( +#if NeedFunctionPrototypes + DeviceIntPtr /* old_dev */, + DeviceIntPtr /* new_dev */, + unsigned char /* x */, + unsigned char /* y */ +#endif + ); + +void +CloseInputDevice ( +#if NeedFunctionPrototypes + DeviceIntPtr /* d */, + ClientPtr /* client */ +#endif + ); + +void +AddOtherInputDevices ( +#if NeedFunctionPrototypes + void +#endif + ); + +void +OpenInputDevice ( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */, + ClientPtr /* client */, + int * /* status */ +#endif + ); + +int +SetDeviceMode ( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + int /* mode */ +#endif + ); + +int +SetDeviceValuators ( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + int * /* valuators */, + int /* first_valuator */, + int /* num_valuators */ +#endif + ); + +int +ChangeDeviceControl ( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + xDeviceCtl * /* control */ +#endif + ); + +#endif /* XI_STUBS_H */ diff --git a/include/bstore.h b/include/bstore.h new file mode 100644 index 000000000..c3a6a9f38 --- /dev/null +++ b/include/bstore.h @@ -0,0 +1,23 @@ +/* $XFree86: xc/programs/Xserver/include/bstore.h,v 1.2 2001/01/06 20:58:12 tsi Exp $*/ +/* + * Copyright (c) 1987 by the Regents of the University of California + * + * Permission to use, copy, modify, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, provided + * that the above copyright notice appear in all copies. The University of + * California makes no representations about the suitability of this software + * for any purpose. It is provided "as is" without express or implied + * warranty. + */ + +/* + * Moved here from mi to allow wrapping of lower level backing store functions. + * -- 1997.10.27 Marc Aurele La France (tsi@xfree86.org) + */ + +#ifndef _BSTORE_H_ +#define _BSTORE_H_ + +#include "bstorestr.h" + +#endif /* _BSTORE_H_ */ diff --git a/include/bstorestr.h b/include/bstorestr.h new file mode 100644 index 000000000..e65ffd47f --- /dev/null +++ b/include/bstorestr.h @@ -0,0 +1,75 @@ +/* $XFree86: xc/programs/Xserver/include/bstorestr.h,v 1.2 2001/01/06 20:58:12 tsi Exp $*/ +/* + * Copyright (c) 1987 by the Regents of the University of California + * + * Permission to use, copy, modify, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, provided + * that the above copyright notice appear in all copies. The University of + * California makes no representations about the suitability of this software + * for any purpose. It is provided "as is" without express or implied + * warranty. + */ + +/* + * Moved here from mi to allow wrapping of lower level backing store functions. + * -- 1997.10.27 Marc Aurele La France (tsi@xfree86.org) + */ + +#ifndef _BSTORESTR_H_ +#define _BSTORESTR_H_ + +#include "gc.h" +#include "pixmap.h" +#include "region.h" +#include "window.h" + +typedef void (* BackingStoreSaveAreasProcPtr)( +#if NeedNestedPrototypes + PixmapPtr /*pBackingPixmap*/, + RegionPtr /*pObscured*/, + int /*x*/, + int /*y*/, + WindowPtr /*pWin*/ +#endif +); + +typedef void (* BackingStoreRestoreAreasProcPtr)( +#if NeedNestedPrototypes + PixmapPtr /*pBackingPixmap*/, + RegionPtr /*pExposed*/, + int /*x*/, + int /*y*/, + WindowPtr /*pWin*/ +#endif +); + +typedef void (* BackingStoreSetClipmaskRgnProcPtr)( +#if NeedNestedPrototypes + GCPtr /*pBackingGC*/, + RegionPtr /*pbackingCompositeClip*/ +#endif +); + +typedef PixmapPtr (* BackingStoreGetImagePixmapProcPtr)( /* unused */ +#if NeedNestedPrototypes + void +#endif +); + +typedef PixmapPtr (* BackingStoreGetSpansPixmapProcPtr)( /* unused */ +#if NeedNestedPrototypes + void +#endif +); + +typedef struct _BSFuncs { + + BackingStoreSaveAreasProcPtr SaveAreas; + BackingStoreRestoreAreasProcPtr RestoreAreas; + BackingStoreSetClipmaskRgnProcPtr SetClipmaskRgn; + BackingStoreGetImagePixmapProcPtr GetImagePixmap; + BackingStoreGetSpansPixmapProcPtr GetSpansPixmap; + +} BSFuncRec, *BSFuncPtr; + +#endif /* _BSTORESTR_H_ */ diff --git a/include/dixevents.h b/include/dixevents.h new file mode 100644 index 000000000..d2c6b47f4 --- /dev/null +++ b/include/dixevents.h @@ -0,0 +1,214 @@ +/* $XFree86: xc/programs/Xserver/include/dixevents.h,v 3.4 2001/09/04 14:03:27 dawes Exp $ */ +/************************************************************ + +Copyright 1996 by Thomas E. Dickey <dickey@clark.net> + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of the above listed +copyright holder(s) not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********************************************************/ + +#ifndef DIXEVENTS_H +#define DIXEVENTS_H + +extern void +SetCriticalEvent( +#if NeedFunctionPrototypes + int /* event */ +#endif + ); + +extern CursorPtr +GetSpriteCursor( +#if NeedFunctionPrototypes + void +#endif + ); + +extern int +ProcAllowEvents( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +MaybeDeliverEventsToClient( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + xEvent * /* pEvents */, + int /* count */, + Mask /* filter */, + ClientPtr /* dontClient */ +#endif + ); + +extern int +ProcWarpPointer( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +#if 0 +extern void +#ifdef XKB +CoreProcessKeyboardEvent ( +#else +ProcessKeyboardEvent ( +#endif +#if NeedFunctionPrototypes + xEvent * /* xE */, + DeviceIntPtr /* keybd */, + int /* count */ +#endif + ); + +extern void +#ifdef XKB +CoreProcessPointerEvent ( +#else +ProcessPointerEvent ( +#endif +#if NeedFunctionPrototypes + xEvent * /* xE */, + DeviceIntPtr /* mouse */, + int /* count */ +#endif + ); +#endif + +extern int +EventSelectForWindow( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + ClientPtr /* client */, + Mask /* mask */ +#endif + ); + +extern int +EventSuppressForWindow( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + ClientPtr /* client */, + Mask /* mask */, + Bool * /* checkOptional */ +#endif + ); + +extern int +ProcSetInputFocus( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcGetInputFocus( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcGrabPointer( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcChangeActivePointerGrab( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcUngrabPointer( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcGrabKeyboard( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcUngrabKeyboard( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcQueryPointer( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcSendEvent( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcUngrabKey( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcGrabKey( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcGrabButton( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcUngrabButton( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +extern int +ProcRecolorCursor( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +#endif /* DIXEVENTS_H */ diff --git a/include/dixgrabs.h b/include/dixgrabs.h new file mode 100644 index 000000000..5c3fc7fa0 --- /dev/null +++ b/include/dixgrabs.h @@ -0,0 +1,79 @@ +/* $XFree86: xc/programs/Xserver/include/dixgrabs.h,v 3.0 1996/04/15 11:34:27 dawes Exp $ */ +/************************************************************ + +Copyright 1996 by Thomas E. Dickey <dickey@clark.net> + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of the above listed +copyright holder(s) not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********************************************************/ + +#ifndef DIXGRABS_H +#define DIXGRABS_H 1 + +GrabPtr +CreateGrab( +#if NeedFunctionPrototypes + int /* client */, + DeviceIntPtr /* device */, + WindowPtr /* window */, + Mask /* eventMask */, + Bool /* ownerEvents */, + Bool /* keyboardMode */, + Bool /* pointerMode */, + DeviceIntPtr /* modDevice */, + unsigned short /* modifiers */, + int /* type */, + KeyCode /* keybut */, + WindowPtr /* confineTo */, + CursorPtr /* cursor */ +#endif + ); + +int +DeletePassiveGrab( +#if NeedFunctionPrototypes + pointer /* value */, + XID /* id */ +#endif + ); + +Bool +GrabMatchesSecond( +#if NeedFunctionPrototypes + GrabPtr /* pFirstGrab */, + GrabPtr /* pSecondGrab */ +#endif + ); + +int +AddPassiveGrabToList( +#if NeedFunctionPrototypes + GrabPtr /* pGrab */ +#endif + ); + +Bool +DeletePassiveGrabFromList( +#if NeedFunctionPrototypes + GrabPtr /* pMinuendGrab */ +#endif + ); + +#endif /* DIXGRABS_H */ diff --git a/include/exevents.h b/include/exevents.h new file mode 100644 index 000000000..2ad79aa10 --- /dev/null +++ b/include/exevents.h @@ -0,0 +1,275 @@ +/* $XFree86: xc/programs/Xserver/include/exevents.h,v 3.1 1996/04/15 11:34:29 dawes Exp $ */ +/************************************************************ + +Copyright 1996 by Thomas E. Dickey <dickey@clark.net> + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of the above listed +copyright holder(s) not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********************************************************/ + +/******************************************************************** + * Interface of 'exevents.c' + */ + +#ifndef EXEVENTS_H +#define EXEVENTS_H + +void +RegisterOtherDevice ( +#if NeedFunctionPrototypes + DeviceIntPtr /* device */ +#endif + ); + +void +ProcessOtherEvent ( +#if NeedFunctionPrototypes + xEventPtr /* FIXME deviceKeyButtonPointer * xE */, + DeviceIntPtr /* other */, + int /* count */ +#endif + ); + +int +InitProximityClassDeviceStruct( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */ +#endif + ); + +void +InitValuatorAxisStruct( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */, + int /* axnum */, + int /* minval */, + int /* maxval */, + int /* resolution */, + int /* min_res */, + int /* max_res */ +#endif + ); + +void +DeviceFocusEvent( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */, + int /* type */, + int /* mode */, + int /* detail */, + WindowPtr /* pWin */ +#endif + ); + +int +GrabButton( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + BYTE /* this_device_mode */, + BYTE /* other_devices_mode */, + CARD16 /* modifiers */, + DeviceIntPtr /* modifier_device */, + CARD8 /* button */, + Window /* grabWindow */, + BOOL /* ownerEvents */, + Cursor /* rcursor */, + Window /* rconfineTo */, + Mask /* eventMask */ +#endif + ); + +int +GrabKey( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + BYTE /* this_device_mode */, + BYTE /* other_devices_mode */, + CARD16 /* modifiers */, + DeviceIntPtr /* modifier_device */, + CARD8 /* key */, + Window /* grabWindow */, + BOOL /* ownerEvents */, + Mask /* mask */ +#endif + ); + +int +SelectForWindow( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */, + WindowPtr /* pWin */, + ClientPtr /* client */, + Mask /* mask */, + Mask /* exclusivemasks */, + Mask /* validmasks */ +#endif + ); + +int +AddExtensionClient ( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + ClientPtr /* client */, + Mask /* mask */, + int /* mskidx */ +#endif + ); + +void +RecalculateDeviceDeliverableEvents( +#if NeedFunctionPrototypes + WindowPtr /* pWin */ +#endif + ); + +int +InputClientGone( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + XID /* id */ +#endif + ); + +int +SendEvent ( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* d */, + Window /* dest */, + Bool /* propagate */, + xEvent * /* ev */, + Mask /* mask */, + int /* count */ +#endif + ); + +int +SetButtonMapping ( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + int /* nElts */, + BYTE * /* map */ +#endif + ); + +int +SetModifierMapping( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + int /* len */, + int /* rlen */, + int /* numKeyPerModifier */, + KeyCode * /* inputMap */, + KeyClassPtr * /* k */ +#endif + ); + +void +SendDeviceMappingNotify( +#if NeedFunctionPrototypes + CARD8 /* request, */, + KeyCode /* firstKeyCode */, + CARD8 /* count */, + DeviceIntPtr /* dev */ +#endif +); + +int +ChangeKeyMapping( +#if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + unsigned /* len */, + int /* type */, + KeyCode /* firstKeyCode */, + CARD8 /* keyCodes */, + CARD8 /* keySymsPerKeyCode */, + KeySym * /* map */ +#endif + ); + +void +DeleteWindowFromAnyExtEvents( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + Bool /* freeResources */ +#endif +); + +void +DeleteDeviceFromAnyExtEvents( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + DeviceIntPtr /* dev */ +#endif + ); + +int +MaybeSendDeviceMotionNotifyHint ( +#if NeedFunctionPrototypes + deviceKeyButtonPointer * /* pEvents */, + Mask /* mask */ +#endif +); + +void +CheckDeviceGrabAndHintWindow ( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + int /* type */, + deviceKeyButtonPointer * /* xE */, + GrabPtr /* grab */, + ClientPtr /* client */, + Mask /* deliveryMask */ +#endif + ); + +Mask +DeviceEventMaskForClient( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */, + WindowPtr /* pWin */, + ClientPtr /* client */ +#endif +); + +void +MaybeStopDeviceHint( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */, + ClientPtr /* client */ +#endif + ); + +int +DeviceEventSuppressForWindow( +#if NeedFunctionPrototypes + WindowPtr /* pWin */, + ClientPtr /* client */, + Mask /* mask */, + int /* maskndx */ +#endif + ); + +#endif /* EXEVENTS_H */ diff --git a/include/extinit.h b/include/extinit.h new file mode 100644 index 000000000..7e577057c --- /dev/null +++ b/include/extinit.h @@ -0,0 +1,212 @@ +/* $XFree86: xc/programs/Xserver/include/extinit.h,v 3.2 2001/08/01 00:44:58 tsi Exp $ */ +/************************************************************ + +Copyright 1996 by Thomas E. Dickey <dickey@clark.net> + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of the above listed +copyright holder(s) not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********************************************************/ + +/******************************************************************** + * Interface of extinit.c + */ + +#ifndef EXTINIT_H +#define EXTINIT_H + +#include "extnsionst.h" + +void +XInputExtensionInit( +#if NeedFunctionPrototypes + void +#endif + ); + + +int +ProcIDispatch ( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +int +SProcIDispatch( +#if NeedFunctionPrototypes + ClientPtr /* client */ +#endif + ); + +void +SReplyIDispatch ( +#if NeedFunctionPrototypes + ClientPtr /* client */, + int /* len */, + xGrabDeviceReply * /* rep */ +#endif + ); + +void +SEventIDispatch ( +#if NeedFunctionPrototypes + xEvent * /* from */, + xEvent * /* to */ +#endif + ); + +void +SEventDeviceValuator ( +#if NeedFunctionPrototypes + deviceValuator * /* from */, + deviceValuator * /* to */ +#endif + ); + +void +SEventFocus ( +#if NeedFunctionPrototypes + deviceFocus * /* from */, + deviceFocus * /* to */ +#endif + ); + +void +SDeviceStateNotifyEvent ( +#if NeedFunctionPrototypes + deviceStateNotify * /* from */, + deviceStateNotify * /* to */ +#endif + ); + +void +SDeviceKeyStateNotifyEvent ( +#if NeedFunctionPrototypes + deviceKeyStateNotify * /* from */, + deviceKeyStateNotify * /* to */ +#endif + ); + +void +SDeviceButtonStateNotifyEvent ( +#if NeedFunctionPrototypes + deviceButtonStateNotify * /* from */, + deviceButtonStateNotify * /* to */ +#endif + ); + +void +SChangeDeviceNotifyEvent ( +#if NeedFunctionPrototypes + changeDeviceNotify * /* from */, + changeDeviceNotify * /* to */ +#endif + ); + +void +SDeviceMappingNotifyEvent ( +#if NeedFunctionPrototypes + deviceMappingNotify * /* from */, + deviceMappingNotify * /* to */ +#endif + ); + +void +FixExtensionEvents ( +#if NeedFunctionPrototypes + ExtensionEntry * /* extEntry */ +#endif + ); + +void +RestoreExtensionEvents ( +#if NeedFunctionPrototypes + void +#endif + ); + +void +IResetProc( +#if NeedFunctionPrototypes + ExtensionEntry * /* unused */ +#endif + ); + +void +AssignTypeAndName ( +#if NeedFunctionPrototypes + DeviceIntPtr /* dev */, + Atom /* type */, + char * /* name */ +#endif + ); + +void +MakeDeviceTypeAtoms ( +#if NeedFunctionPrototypes + void +#endif +); + +DeviceIntPtr +LookupDeviceIntRec ( +#if NeedFunctionPrototypes + CARD8 /* id */ +#endif + ); + +void +SetExclusiveAccess ( +#if NeedFunctionPrototypes + Mask /* mask */ +#endif + ); + +void +AllowPropagateSuppress ( +#if NeedFunctionPrototypes + Mask /* mask */ +#endif + ); + +Mask +GetNextExtEventMask ( +#if NeedFunctionPrototypes + void +#endif +); + +void +SetMaskForExtEvent( +#if NeedFunctionPrototypes + Mask /* mask */, + int /* event */ +#endif + ); + +void +SetEventInfo( +#if NeedFunctionPrototypes + Mask /* mask */, + int /* constant */ +#endif + ); + +#endif /* EXTINIT_H */ diff --git a/include/globals.h b/include/globals.h new file mode 100644 index 000000000..3b1b6ba0b --- /dev/null +++ b/include/globals.h @@ -0,0 +1,52 @@ +/* $XFree86: xc/programs/Xserver/include/globals.h,v 1.4 2000/06/28 18:21:22 tsi Exp $ */ + +#ifndef _XSERV_GLOBAL_H_ +#define _XSERV_GLOBAL_H_ + +#include "window.h" /* for WindowPtr */ + +/* Global X server variables that are visible to mi, dix, os, and ddx */ + +extern CARD32 defaultScreenSaverTime; +extern CARD32 defaultScreenSaverInterval; +extern CARD32 ScreenSaverTime; +extern CARD32 ScreenSaverInterval; + +extern char *defaultFontPath; +extern char *rgbPath; +extern int monitorResolution; +extern Bool loadableFonts; +extern int defaultColorVisualClass; + +extern Bool Must_have_memory; +extern WindowPtr *WindowTable; +extern int GrabInProgress; +extern Bool noTestExtensions; + +extern DDXPointRec dixScreenOrigins[MAXSCREENS]; + +#ifdef DPMSExtension +extern CARD32 defaultDPMSStandbyTime; +extern CARD32 defaultDPMSSuspendTime; +extern CARD32 defaultDPMSOffTime; +extern CARD32 DPMSStandbyTime; +extern CARD32 DPMSSuspendTime; +extern CARD32 DPMSOffTime; +extern CARD16 DPMSPowerLevel; +extern Bool defaultDPMSEnabled; +extern Bool DPMSEnabled; +extern Bool DPMSEnabledSwitch; +extern Bool DPMSDisabledSwitch; +extern Bool DPMSCapableFlag; +#endif + +#ifdef PANORAMIX +extern Bool noPanoramiXExtension; +extern Bool PanoramiXMapped; +extern Bool PanoramiXVisibilityNotifySent; +extern Bool PanoramiXWindowExposureSent; +extern Bool PanoramiXOneExposeRequest; +#endif + + +#endif /* _XSERV_GLOBAL_H_ */ diff --git a/include/swaprep.h b/include/swaprep.h new file mode 100644 index 000000000..a8453db60 --- /dev/null +++ b/include/swaprep.h @@ -0,0 +1,542 @@ +/* $XFree86: xc/programs/Xserver/include/swaprep.h,v 3.0 1996/04/15 11:34:34 dawes Exp $ */ +/************************************************************ + +Copyright 1996 by Thomas E. Dickey <dickey@clark.net> + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of the above listed +copyright holder(s) not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********************************************************/ + +#ifndef SWAPREP_H +#define SWAPREP_H 1 + +void +Swap32Write( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + CARD32 * /* pbuf */ +#endif +); + +void +CopySwap32Write( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + CARD32 * /* pbuf */ +#endif +); + +void +CopySwap16Write( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + short * /* pbuf */ +#endif +); + +void +SGenericReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGenericReply * /* pRep */ +#endif +); + +void +SGetWindowAttributesReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetWindowAttributesReply * /* pRep */ +#endif +); + +void +SGetGeometryReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetGeometryReply * /* pRep */ +#endif +); + +void +SQueryTreeReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xQueryTreeReply * /* pRep */ +#endif +); + +void +SInternAtomReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xInternAtomReply * /* pRep */ +#endif +); + +void +SGetAtomNameReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetAtomNameReply * /* pRep */ +#endif +); + +void +SGetPropertyReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetPropertyReply * /* pRep */ +#endif +); + +void +SListPropertiesReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xListPropertiesReply * /* pRep */ +#endif +); + +void +SGetSelectionOwnerReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetSelectionOwnerReply * /* pRep */ +#endif +); + +void +SQueryPointerReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xQueryPointerReply * /* pRep */ +#endif +); + +void +SwapTimecoord( +#if NeedFunctionPrototypes + xTimecoord * /* pCoord */ +#endif +); + +void +SwapTimeCoordWrite( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xTimecoord * /* pRep */ +#endif +); + +void +SGetMotionEventsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetMotionEventsReply * /* pRep */ +#endif +); + +void +STranslateCoordsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xTranslateCoordsReply * /* pRep */ +#endif +); + +void +SGetInputFocusReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetInputFocusReply * /* pRep */ +#endif +); + +void +SQueryKeymapReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xQueryKeymapReply * /* pRep */ +#endif +); + +#ifdef LBX +void +SwapCharInfo( +#if NeedFunctionPrototypes + xCharInfo * /* pInfo */ +#endif +); +#endif + +#ifdef LBX +void +SwapFont( +#if NeedFunctionPrototypes + xQueryFontReply * /* pr */, + Bool /* hasGlyphs */ +#endif +); +#endif + +void +SQueryFontReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xQueryFontReply * /* pRep */ +#endif +); + +void +SQueryTextExtentsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xQueryTextExtentsReply * /* pRep */ +#endif +); + +void +SListFontsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xListFontsReply * /* pRep */ +#endif +); + +void +SListFontsWithInfoReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xListFontsWithInfoReply * /* pRep */ +#endif +); + +void +SGetFontPathReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetFontPathReply * /* pRep */ +#endif +); + +void +SGetImageReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetImageReply * /* pRep */ +#endif +); + +void +SListInstalledColormapsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xListInstalledColormapsReply * /* pRep */ +#endif +); + +void +SAllocColorReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xAllocColorReply * /* pRep */ +#endif +); + +void +SAllocNamedColorReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xAllocNamedColorReply * /* pRep */ +#endif +); + +void +SAllocColorCellsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xAllocColorCellsReply * /* pRep */ +#endif +); + +void +SAllocColorPlanesReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xAllocColorPlanesReply * /* pRep */ +#endif +); + +void +SwapRGB( +#if NeedFunctionPrototypes + xrgb * /* prgb */ +#endif +); + +void +SQColorsExtend( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xrgb * /* prgb */ +#endif +); + +void +SQueryColorsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xQueryColorsReply * /* pRep */ +#endif +); + +void +SLookupColorReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xLookupColorReply * /* pRep */ +#endif +); + +void +SQueryBestSizeReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xQueryBestSizeReply * /* pRep */ +#endif +); + +void +SListExtensionsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xListExtensionsReply * /* pRep */ +#endif +); + +void +SGetKeyboardMappingReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetKeyboardMappingReply * /* pRep */ +#endif +); + +void +SGetPointerMappingReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetPointerMappingReply * /* pRep */ +#endif +); + +void +SGetModifierMappingReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetModifierMappingReply * /* pRep */ +#endif +); + +void +SGetKeyboardControlReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetKeyboardControlReply * /* pRep */ +#endif +); + +void +SGetPointerControlReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetPointerControlReply * /* pRep */ +#endif +); + +void +SGetScreenSaverReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xGetScreenSaverReply * /* pRep */ +#endif +); + +void +SLHostsExtend( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + char * /* buf */ +#endif +); + +void +SListHostsReply( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + int /* size */, + xListHostsReply * /* pRep */ +#endif +); + +void +SErrorEvent( +#if NeedFunctionPrototypes + xError * /* from */, + xError * /* to */ +#endif +); + +void +SwapConnSetupInfo( +#if NeedFunctionPrototypes + char * /* pInfo */, + char * /* pInfoTBase */ +#endif +); + +void +WriteSConnectionInfo( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + unsigned long /* size */, + char * /* pInfo */ +#endif +); + +void +SwapConnSetup( +#if NeedFunctionPrototypes + xConnSetup * /* pConnSetup */, + xConnSetup * /* pConnSetupT */ +#endif +); + +void +SwapWinRoot( +#if NeedFunctionPrototypes + xWindowRoot * /* pRoot */, + xWindowRoot * /* pRootT */ +#endif +); + +void +SwapVisual( +#if NeedFunctionPrototypes + xVisualType * /* pVis */, + xVisualType * /* pVisT */ +#endif +); + +void +SwapConnSetupPrefix( +#if NeedFunctionPrototypes + xConnSetupPrefix * /* pcspFrom */, + xConnSetupPrefix * /* pcspTo */ +#endif +); + +void +WriteSConnSetupPrefix( +#if NeedFunctionPrototypes + ClientPtr /* pClient */, + xConnSetupPrefix * /* pcsp */ +#endif +); + +#undef SWAPREP_PROC +#if NeedFunctionPrototypes +#define SWAPREP_PROC(func) void func(xEvent * /* from */, xEvent * /* to */) +#else +#define SWAPREP_PROC(func) void func(/* xEvent * from, xEvent * to */) +#endif + +SWAPREP_PROC(SCirculateEvent); +SWAPREP_PROC(SClientMessageEvent); +SWAPREP_PROC(SColormapEvent); +SWAPREP_PROC(SConfigureNotifyEvent); +SWAPREP_PROC(SConfigureRequestEvent); +SWAPREP_PROC(SCreateNotifyEvent); +SWAPREP_PROC(SDestroyNotifyEvent); +SWAPREP_PROC(SEnterLeaveEvent); +SWAPREP_PROC(SExposeEvent); +SWAPREP_PROC(SFocusEvent); +SWAPREP_PROC(SGraphicsExposureEvent); +SWAPREP_PROC(SGravityEvent); +SWAPREP_PROC(SKeyButtonPtrEvent); +SWAPREP_PROC(SKeymapNotifyEvent); +SWAPREP_PROC(SMapNotifyEvent); +SWAPREP_PROC(SMapRequestEvent); +SWAPREP_PROC(SMappingEvent); +SWAPREP_PROC(SNoExposureEvent); +SWAPREP_PROC(SPropertyEvent); +SWAPREP_PROC(SReparentEvent); +SWAPREP_PROC(SResizeRequestEvent); +SWAPREP_PROC(SSelectionClearEvent); +SWAPREP_PROC(SSelectionNotifyEvent); +SWAPREP_PROC(SSelectionRequestEvent); +SWAPREP_PROC(SUnmapNotifyEvent); +SWAPREP_PROC(SVisibilityEvent); + +#undef SWAPREP_PROC + +#endif /* SWAPREP_H */ diff --git a/include/swapreq.h b/include/swapreq.h new file mode 100644 index 000000000..5946b2261 --- /dev/null +++ b/include/swapreq.h @@ -0,0 +1,140 @@ +/* $XFree86: xc/programs/Xserver/include/swapreq.h,v 1.2 2001/04/05 17:42:35 dawes Exp $ */ +/************************************************************ + +Copyright 1996 by Thomas E. Dickey <dickey@clark.net> + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of the above listed +copyright holder(s) not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********************************************************/ + +#ifndef SWAPREQ_H +#define SWAPREQ_H 1 + +/* The first two are in misc.h */ +#if 0 +void +SwapLongs ( +#if NeedFunctionPrototypes + CARD32 * /* list */, + unsigned long /* count */ +#endif +); + +void +SwapShorts ( +#if NeedFunctionPrototypes + short * /* list */, + unsigned long /* count */ +#endif +); +#endif + +void +SwapColorItem( +#if NeedFunctionPrototypes + xColorItem * /* pItem */ +#endif +); + +void +SwapConnClientPrefix( +#if NeedFunctionPrototypes + xConnClientPrefix * /* pCCP */ +#endif +); + +#undef SWAPREQ_PROC + +#if NeedFunctionPrototypes +#define SWAPREQ_PROC(func) int func(ClientPtr /* client */) +#else +#define SWAPREQ_PROC(func) int func(/* ClientPtr client */) +#endif + +SWAPREQ_PROC(SProcAllocColor); +SWAPREQ_PROC(SProcAllocColorCells); +SWAPREQ_PROC(SProcAllocColorPlanes); +SWAPREQ_PROC(SProcAllocNamedColor); +SWAPREQ_PROC(SProcChangeActivePointerGrab); +SWAPREQ_PROC(SProcChangeGC); +SWAPREQ_PROC(SProcChangeHosts); +SWAPREQ_PROC(SProcChangeKeyboardControl); +SWAPREQ_PROC(SProcChangeKeyboardMapping); +SWAPREQ_PROC(SProcChangePointerControl); +SWAPREQ_PROC(SProcChangeProperty); +SWAPREQ_PROC(SProcChangeWindowAttributes); +SWAPREQ_PROC(SProcClearToBackground); +SWAPREQ_PROC(SProcConfigureWindow); +SWAPREQ_PROC(SProcConvertSelection); +SWAPREQ_PROC(SProcCopyArea); +SWAPREQ_PROC(SProcCopyColormapAndFree); +SWAPREQ_PROC(SProcCopyGC); +SWAPREQ_PROC(SProcCopyPlane); +SWAPREQ_PROC(SProcCreateColormap); +SWAPREQ_PROC(SProcCreateCursor); +SWAPREQ_PROC(SProcCreateGC); +SWAPREQ_PROC(SProcCreateGlyphCursor); +SWAPREQ_PROC(SProcCreatePixmap); +SWAPREQ_PROC(SProcCreateWindow); +SWAPREQ_PROC(SProcDeleteProperty); +SWAPREQ_PROC(SProcFillPoly); +SWAPREQ_PROC(SProcFreeColors); +SWAPREQ_PROC(SProcGetImage); +SWAPREQ_PROC(SProcGetMotionEvents); +SWAPREQ_PROC(SProcGetProperty); +SWAPREQ_PROC(SProcGrabButton); +SWAPREQ_PROC(SProcGrabKey); +SWAPREQ_PROC(SProcGrabKeyboard); +SWAPREQ_PROC(SProcGrabPointer); +SWAPREQ_PROC(SProcImageText); +SWAPREQ_PROC(SProcInternAtom); +SWAPREQ_PROC(SProcListFonts); +SWAPREQ_PROC(SProcListFontsWithInfo); +SWAPREQ_PROC(SProcLookupColor); +SWAPREQ_PROC(SProcNoOperation); +SWAPREQ_PROC(SProcOpenFont); +SWAPREQ_PROC(SProcPoly); +SWAPREQ_PROC(SProcPolyText); +SWAPREQ_PROC(SProcPutImage); +SWAPREQ_PROC(SProcQueryBestSize); +SWAPREQ_PROC(SProcQueryColors); +SWAPREQ_PROC(SProcQueryExtension); +SWAPREQ_PROC(SProcRecolorCursor); +SWAPREQ_PROC(SProcReparentWindow); +SWAPREQ_PROC(SProcResourceReq); +SWAPREQ_PROC(SProcRotateProperties); +SWAPREQ_PROC(SProcSendEvent); +SWAPREQ_PROC(SProcSetClipRectangles); +SWAPREQ_PROC(SProcSetDashes); +SWAPREQ_PROC(SProcSetFontPath); +SWAPREQ_PROC(SProcSetInputFocus); +SWAPREQ_PROC(SProcSetScreenSaver); +SWAPREQ_PROC(SProcSetSelectionOwner); +SWAPREQ_PROC(SProcSimpleReq); +SWAPREQ_PROC(SProcStoreColors); +SWAPREQ_PROC(SProcStoreNamedColor); +SWAPREQ_PROC(SProcTranslateCoords); +SWAPREQ_PROC(SProcUngrabButton); +SWAPREQ_PROC(SProcUngrabKey); +SWAPREQ_PROC(SProcWarpPointer); + +#undef SWAPREQ_PROC + +#endif /* SWAPREQ_H */ |