summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h504
1 files changed, 254 insertions, 250 deletions
diff --git a/proto.h b/proto.h
index dba23d1..232c6ee 100644
--- a/proto.h
+++ b/proto.h
@@ -17,18 +17,18 @@ extern void ReplyExpected (FD fd, short Request);
extern void ExtendedReplyExpected (FD fd, short Request, short RequestMinor);
extern void KeepLastReplyExpected (void);
-extern void DecodeRequest (FD fd, unsigned char *buf, long n);
-extern void DecodeReply (FD fd, unsigned char *buf, long n);
-extern void DecodeError (FD fd, unsigned char *buf, long n);
-extern void DecodeEvent (FD fd, unsigned char *buf, long n);
+extern void DecodeRequest (FD fd, const unsigned char *buf, long n);
+extern void DecodeReply (FD fd, const unsigned char *buf, long n);
+extern void DecodeError (FD fd, const unsigned char *buf, long n);
+extern void DecodeEvent (FD fd, const unsigned char *buf, long n);
/* X11 Extension decoders in decode_*.c */
#define extension_decode_prototypes(ext) \
- extern void ext##_decode_req (FD fd, unsigned char *buf); \
- extern void ext##_decode_reply (FD fd, unsigned char *buf, \
- short RequestMinor); \
- extern void ext##_decode_error (FD fd, unsigned char *buf); \
- extern void ext##_decode_event (FD fd, unsigned char *buf)
+ extern void ext##_decode_req (FD fd, const unsigned char *buf); \
+ extern void ext##_decode_reply (FD fd, const unsigned char *buf, \
+ short RequestMinor); \
+ extern void ext##_decode_error (FD fd, const unsigned char *buf); \
+ extern void ext##_decode_event (FD fd, const unsigned char *buf)
extension_decode_prototypes(bigreq);
extension_decode_prototypes(lbx);
@@ -37,247 +37,251 @@ extension_decode_prototypes(randr);
extension_decode_prototypes(render);
extension_decode_prototypes(wcp);
-extern void InitializeBIGREQ (unsigned char *buf);
-extern void InitializeLBX (unsigned char *buf);
-extern void InitializeMITSHM (unsigned char *buf);
-extern void InitializeRANDR (unsigned char *buf);
-extern void InitializeRENDER (unsigned char *buf);
-extern void InitializeWCP (unsigned char *buf);
+extern void InitializeBIGREQ (const unsigned char *buf);
+extern void InitializeLBX (const unsigned char *buf);
+extern void InitializeMITSHM (const unsigned char *buf);
+extern void InitializeRANDR (const unsigned char *buf);
+extern void InitializeRENDER (const unsigned char *buf);
+extern void InitializeWCP (const unsigned char *buf);
/* print11.c */
-extern void PrintSetUpMessage (unsigned char *buf);
-extern void PrintSetUpReply (unsigned char *buf);
+extern void PrintSetUpMessage (const unsigned char *buf);
+extern void PrintSetUpReply (const unsigned char *buf);
-extern void RequestError (unsigned char *buf);
-extern void ValueError (unsigned char *buf);
-extern void WindowError (unsigned char *buf);
-extern void PixmapError (unsigned char *buf);
-extern void AtomError (unsigned char *buf);
-extern void CursorError (unsigned char *buf);
-extern void FontError (unsigned char *buf);
-extern void MatchError (unsigned char *buf);
-extern void DrawableError (unsigned char *buf);
-extern void AccessError (unsigned char *buf);
-extern void AllocError (unsigned char *buf);
-extern void ColormapError (unsigned char *buf);
-extern void GContextError (unsigned char *buf);
-extern void IDChoiceError (unsigned char *buf);
-extern void NameError (unsigned char *buf);
-extern void LengthError (unsigned char *buf);
-extern void ImplementationError (unsigned char *buf);
+extern void RequestError (const unsigned char *buf);
+extern void ValueError (const unsigned char *buf);
+extern void WindowError (const unsigned char *buf);
+extern void PixmapError (const unsigned char *buf);
+extern void AtomError (const unsigned char *buf);
+extern void CursorError (const unsigned char *buf);
+extern void FontError (const unsigned char *buf);
+extern void MatchError (const unsigned char *buf);
+extern void DrawableError (const unsigned char *buf);
+extern void AccessError (const unsigned char *buf);
+extern void AllocError (const unsigned char *buf);
+extern void ColormapError (const unsigned char *buf);
+extern void GContextError (const unsigned char *buf);
+extern void IDChoiceError (const unsigned char *buf);
+extern void NameError (const unsigned char *buf);
+extern void LengthError (const unsigned char *buf);
+extern void ImplementationError (const unsigned char *buf);
-extern void KeyPressEvent (unsigned char *buf);
-extern void KeyReleaseEvent (unsigned char *buf);
-extern void ButtonPressEvent (unsigned char *buf);
-extern void ButtonReleaseEvent (unsigned char *buf);
-extern void MotionNotifyEvent (unsigned char *buf);
-extern void EnterNotifyEvent (unsigned char *buf);
-extern void LeaveNotifyEvent (unsigned char *buf);
-extern void FocusInEvent (unsigned char *buf);
-extern void FocusOutEvent (unsigned char *buf);
-extern void KeymapNotifyEvent (unsigned char *buf);
-extern void ExposeEvent (unsigned char *buf);
-extern void GraphicsExposureEvent (unsigned char *buf);
-extern void NoExposureEvent (unsigned char *buf);
-extern void VisibilityNotifyEvent (unsigned char *buf);
-extern void CreateNotifyEvent (unsigned char *buf);
-extern void DestroyNotifyEvent (unsigned char *buf);
-extern void UnmapNotifyEvent (unsigned char *buf);
-extern void MapNotifyEvent (unsigned char *buf);
-extern void MapRequestEvent (unsigned char *buf);
-extern void ReparentNotifyEvent (unsigned char *buf);
-extern void ConfigureNotifyEvent (unsigned char *buf);
-extern void ConfigureRequestEvent (unsigned char *buf);
-extern void GravityNotifyEvent (unsigned char *buf);
-extern void ResizeRequestEvent (unsigned char *buf);
-extern void CirculateNotifyEvent (unsigned char *buf);
-extern void CirculateRequestEvent (unsigned char *buf);
-extern void PropertyNotifyEvent (unsigned char *buf);
-extern void SelectionClearEvent (unsigned char *buf);
-extern void SelectionRequestEvent (unsigned char *buf);
-extern void SelectionNotifyEvent (unsigned char *buf);
-extern void ColormapNotifyEvent (unsigned char *buf);
-extern void ClientMessageEvent (unsigned char *buf);
-extern void MappingNotifyEvent (unsigned char *buf);
+extern void KeyPressEvent (const unsigned char *buf);
+extern void KeyReleaseEvent (const unsigned char *buf);
+extern void ButtonPressEvent (const unsigned char *buf);
+extern void ButtonReleaseEvent (const unsigned char *buf);
+extern void MotionNotifyEvent (const unsigned char *buf);
+extern void EnterNotifyEvent (const unsigned char *buf);
+extern void LeaveNotifyEvent (const unsigned char *buf);
+extern void FocusInEvent (const unsigned char *buf);
+extern void FocusOutEvent (const unsigned char *buf);
+extern void KeymapNotifyEvent (const unsigned char *buf);
+extern void ExposeEvent (const unsigned char *buf);
+extern void GraphicsExposureEvent (const unsigned char *buf);
+extern void NoExposureEvent (const unsigned char *buf);
+extern void VisibilityNotifyEvent (const unsigned char *buf);
+extern void CreateNotifyEvent (const unsigned char *buf);
+extern void DestroyNotifyEvent (const unsigned char *buf);
+extern void UnmapNotifyEvent (const unsigned char *buf);
+extern void MapNotifyEvent (const unsigned char *buf);
+extern void MapRequestEvent (const unsigned char *buf);
+extern void ReparentNotifyEvent (const unsigned char *buf);
+extern void ConfigureNotifyEvent (const unsigned char *buf);
+extern void ConfigureRequestEvent (const unsigned char *buf);
+extern void GravityNotifyEvent (const unsigned char *buf);
+extern void ResizeRequestEvent (const unsigned char *buf);
+extern void CirculateNotifyEvent (const unsigned char *buf);
+extern void CirculateRequestEvent (const unsigned char *buf);
+extern void PropertyNotifyEvent (const unsigned char *buf);
+extern void SelectionClearEvent (const unsigned char *buf);
+extern void SelectionRequestEvent (const unsigned char *buf);
+extern void SelectionNotifyEvent (const unsigned char *buf);
+extern void ColormapNotifyEvent (const unsigned char *buf);
+extern void ClientMessageEvent (const unsigned char *buf);
+extern void MappingNotifyEvent (const unsigned char *buf);
-extern void ExtendedRequest (int fd, unsigned char *buf);
-extern void UnknownReply (unsigned char *buf);
+extern void ExtendedRequest (int fd, const unsigned char *buf);
+extern void UnknownReply (const unsigned char *buf);
-extern void CreateWindow (unsigned char *buf);
-extern void ChangeWindowAttributes (unsigned char *buf);
-extern void GetWindowAttributes (unsigned char *buf);
-extern void GetWindowAttributesReply (unsigned char *buf);
-extern void DestroyWindow (unsigned char *buf);
-extern void DestroySubwindows (unsigned char *buf);
-extern void ChangeSaveSet (unsigned char *buf);
-extern void ReparentWindow (unsigned char *buf);
-extern void MapWindow (unsigned char *buf);
-extern void MapSubwindows (unsigned char *buf);
-extern void UnmapWindow (unsigned char *buf);
-extern void UnmapSubwindows (unsigned char *buf);
-extern void ConfigureWindow (unsigned char *buf);
-extern void CirculateWindow (unsigned char *buf);
-extern void GetGeometry (unsigned char *buf);
-extern void GetGeometryReply (unsigned char *buf);
-extern void QueryTree (unsigned char *buf);
-extern void QueryTreeReply (unsigned char *buf);
-extern void InternAtom (unsigned char *buf);
-extern void InternAtomReply (unsigned char *buf);
-extern void GetAtomName (unsigned char *buf);
-extern void GetAtomNameReply (unsigned char *buf);
-extern void ChangeProperty (unsigned char *buf);
-extern void DeleteProperty (unsigned char *buf);
-extern void GetProperty (unsigned char *buf);
-extern void GetPropertyReply (unsigned char *buf);
-extern void ListProperties (unsigned char *buf);
-extern void ListPropertiesReply (unsigned char *buf);
-extern void SetSelectionOwner (unsigned char *buf);
-extern void GetSelectionOwner (unsigned char *buf);
-extern void GetSelectionOwnerReply (unsigned char *buf);
-extern void ConvertSelection (unsigned char *buf);
-extern void SendEvent (unsigned char *buf);
-extern void GrabPointer (unsigned char *buf);
-extern void GrabPointerReply (unsigned char *buf);
-extern void UngrabPointer (unsigned char *buf);
-extern void GrabButton (unsigned char *buf);
-extern void UngrabButton (unsigned char *buf);
-extern void ChangeActivePointerGrab (unsigned char *buf);
-extern void GrabKeyboard (unsigned char *buf);
-extern void GrabKeyboardReply (unsigned char *buf);
-extern void UngrabKeyboard (unsigned char *buf);
-extern void GrabKey (unsigned char *buf);
-extern void UngrabKey (unsigned char *buf);
-extern void AllowEvents (unsigned char *buf);
-extern void GrabServer (unsigned char *buf);
-extern void UngrabServer (unsigned char *buf);
-extern void QueryPointer (unsigned char *buf);
-extern void QueryPointerReply (unsigned char *buf);
-extern void GetMotionEvents (unsigned char *buf);
-extern void GetMotionEventsReply (unsigned char *buf);
-extern void TranslateCoordinates (unsigned char *buf);
-extern void TranslateCoordinatesReply (unsigned char *buf);
-extern void WarpPointer (unsigned char *buf);
-extern void SetInputFocus (unsigned char *buf);
-extern void GetInputFocus (unsigned char *buf);
-extern void GetInputFocusReply (unsigned char *buf);
-extern void QueryKeymap (unsigned char *buf);
-extern void QueryKeymapReply (unsigned char *buf);
-extern void OpenFont (unsigned char *buf);
-extern void CloseFont (unsigned char *buf);
-extern void QueryFont (unsigned char *buf);
-extern void QueryFontReply (unsigned char *buf);
-extern void QueryTextExtents (unsigned char *buf);
-extern void QueryTextExtentsReply (unsigned char *buf);
-extern void ListFonts (unsigned char *buf);
-extern void ListFontsReply (unsigned char *buf);
-extern void ListFontsWithInfo (unsigned char *buf);
-extern void ListFontsWithInfoReply (unsigned char *buf);
-extern void SetFontPath (unsigned char *buf);
-extern void GetFontPath (unsigned char *buf);
-extern void GetFontPathReply (unsigned char *buf);
-extern void CreatePixmap (unsigned char *buf);
-extern void FreePixmap (unsigned char *buf);
-extern void CreateGC (unsigned char *buf);
-extern void ChangeGC (unsigned char *buf);
-extern void CopyGC (unsigned char *buf);
-extern void SetDashes (unsigned char *buf);
-extern void SetClipRectangles (unsigned char *buf);
-extern void FreeGC (unsigned char *buf);
-extern void ClearArea (unsigned char *buf);
-extern void CopyArea (unsigned char *buf);
-extern void CopyPlane (unsigned char *buf);
-extern void PolyPoint (unsigned char *buf);
-extern void PolyLine (unsigned char *buf);
-extern void PolySegment (unsigned char *buf);
-extern void PolyRectangle (unsigned char *buf);
-extern void PolyArc (unsigned char *buf);
-extern void FillPoly (unsigned char *buf);
-extern void PolyFillRectangle (unsigned char *buf);
-extern void PolyFillArc (unsigned char *buf);
-extern void PutImage (unsigned char *buf);
-extern void GetImage (unsigned char *buf);
-extern void GetImageReply (unsigned char *buf);
-extern void PolyText8 (unsigned char *buf);
-extern void PolyText16 (unsigned char *buf);
-extern void ImageText8 (unsigned char *buf);
-extern void ImageText16 (unsigned char *buf);
-extern void CreateColormap (unsigned char *buf);
-extern void FreeColormap (unsigned char *buf);
-extern void CopyColormapAndFree (unsigned char *buf);
-extern void InstallColormap (unsigned char *buf);
-extern void UninstallColormap (unsigned char *buf);
-extern void ListInstalledColormaps (unsigned char *buf);
-extern void ListInstalledColormapsReply (unsigned char *buf);
-extern void AllocColor (unsigned char *buf);
-extern void AllocColorReply (unsigned char *buf);
-extern void AllocNamedColor (unsigned char *buf);
-extern void AllocNamedColorReply (unsigned char *buf);
-extern void AllocColorCells (unsigned char *buf);
-extern void AllocColorCellsReply (unsigned char *buf);
-extern void AllocColorPlanes (unsigned char *buf);
-extern void AllocColorPlanesReply (unsigned char *buf);
-extern void FreeColors (unsigned char *buf);
-extern void StoreColors (unsigned char *buf);
-extern void StoreNamedColor (unsigned char *buf);
-extern void QueryColors (unsigned char *buf);
-extern void QueryColorsReply (unsigned char *buf);
-extern void LookupColor (unsigned char *buf);
-extern void LookupColorReply (unsigned char *buf);
-extern void CreateCursor (unsigned char *buf);
-extern void CreateGlyphCursor (unsigned char *buf);
-extern void FreeCursor (unsigned char *buf);
-extern void RecolorCursor (unsigned char *buf);
-extern void QueryBestSize (unsigned char *buf);
-extern void QueryBestSizeReply (unsigned char *buf);
-extern void QueryExtension (unsigned char *buf);
-extern void QueryExtensionReply (unsigned char *buf);
-extern void ListExtensions (unsigned char *buf);
-extern void ListExtensionsReply (unsigned char *buf);
-extern void ChangeKeyboardMapping (unsigned char *buf);
-extern void GetKeyboardMapping (unsigned char *buf);
-extern void GetKeyboardMappingReply (unsigned char *buf);
-extern void ChangeKeyboardControl (unsigned char *buf);
-extern void GetKeyboardControl (unsigned char *buf);
-extern void GetKeyboardControlReply (unsigned char *buf);
-extern void Bell (unsigned char *buf);
-extern void ChangePointerControl (unsigned char *buf);
-extern void GetPointerControl (unsigned char *buf);
-extern void GetPointerControlReply (unsigned char *buf);
-extern void SetScreenSaver (unsigned char *buf);
-extern void GetScreenSaver (unsigned char *buf);
-extern void GetScreenSaverReply (unsigned char *buf);
-extern void ChangeHosts (unsigned char *buf);
-extern void ListHosts (unsigned char *buf);
-extern void ListHostsReply (unsigned char *buf);
-extern void SetAccessControl (unsigned char *buf);
-extern void SetCloseDownMode (unsigned char *buf);
-extern void KillClient (unsigned char *buf);
-extern void RotateProperties (unsigned char *buf);
-extern void ForceScreenSaver (unsigned char *buf);
-extern void SetPointerMapping (unsigned char *buf);
-extern void SetPointerMappingReply (unsigned char *buf);
-extern void GetPointerMapping (unsigned char *buf);
-extern void GetPointerMappingReply (unsigned char *buf);
-extern void SetModifierMapping (unsigned char *buf);
-extern void SetModifierMappingReply (unsigned char *buf);
-extern void GetModifierMapping (unsigned char *buf);
-extern void GetModifierMappingReply (unsigned char *buf);
-extern void NoOperation (unsigned char *buf);
+extern void CreateWindow (const unsigned char *buf);
+extern void ChangeWindowAttributes (const unsigned char *buf);
+extern void GetWindowAttributes (const unsigned char *buf);
+extern void GetWindowAttributesReply (const unsigned char *buf);
+extern void DestroyWindow (const unsigned char *buf);
+extern void DestroySubwindows (const unsigned char *buf);
+extern void ChangeSaveSet (const unsigned char *buf);
+extern void ReparentWindow (const unsigned char *buf);
+extern void MapWindow (const unsigned char *buf);
+extern void MapSubwindows (const unsigned char *buf);
+extern void UnmapWindow (const unsigned char *buf);
+extern void UnmapSubwindows (const unsigned char *buf);
+extern void ConfigureWindow (const unsigned char *buf);
+extern void CirculateWindow (const unsigned char *buf);
+extern void GetGeometry (const unsigned char *buf);
+extern void GetGeometryReply (const unsigned char *buf);
+extern void QueryTree (const unsigned char *buf);
+extern void QueryTreeReply (const unsigned char *buf);
+extern void InternAtom (const unsigned char *buf);
+extern void InternAtomReply (const unsigned char *buf);
+extern void GetAtomName (const unsigned char *buf);
+extern void GetAtomNameReply (const unsigned char *buf);
+extern void ChangeProperty (const unsigned char *buf);
+extern void DeleteProperty (const unsigned char *buf);
+extern void GetProperty (const unsigned char *buf);
+extern void GetPropertyReply (const unsigned char *buf);
+extern void ListProperties (const unsigned char *buf);
+extern void ListPropertiesReply (const unsigned char *buf);
+extern void SetSelectionOwner (const unsigned char *buf);
+extern void GetSelectionOwner (const unsigned char *buf);
+extern void GetSelectionOwnerReply (const unsigned char *buf);
+extern void ConvertSelection (const unsigned char *buf);
+extern void SendEvent (const unsigned char *buf);
+extern void GrabPointer (const unsigned char *buf);
+extern void GrabPointerReply (const unsigned char *buf);
+extern void UngrabPointer (const unsigned char *buf);
+extern void GrabButton (const unsigned char *buf);
+extern void UngrabButton (const unsigned char *buf);
+extern void ChangeActivePointerGrab (const unsigned char *buf);
+extern void GrabKeyboard (const unsigned char *buf);
+extern void GrabKeyboardReply (const unsigned char *buf);
+extern void UngrabKeyboard (const unsigned char *buf);
+extern void GrabKey (const unsigned char *buf);
+extern void UngrabKey (const unsigned char *buf);
+extern void AllowEvents (const unsigned char *buf);
+extern void GrabServer (const unsigned char *buf);
+extern void UngrabServer (const unsigned char *buf);
+extern void QueryPointer (const unsigned char *buf);
+extern void QueryPointerReply (const unsigned char *buf);
+extern void GetMotionEvents (const unsigned char *buf);
+extern void GetMotionEventsReply (const unsigned char *buf);
+extern void TranslateCoordinates (const unsigned char *buf);
+extern void TranslateCoordinatesReply (const unsigned char *buf);
+extern void WarpPointer (const unsigned char *buf);
+extern void SetInputFocus (const unsigned char *buf);
+extern void GetInputFocus (const unsigned char *buf);
+extern void GetInputFocusReply (const unsigned char *buf);
+extern void QueryKeymap (const unsigned char *buf);
+extern void QueryKeymapReply (const unsigned char *buf);
+extern void OpenFont (const unsigned char *buf);
+extern void CloseFont (const unsigned char *buf);
+extern void QueryFont (const unsigned char *buf);
+extern void QueryFontReply (const unsigned char *buf);
+extern void QueryTextExtents (const unsigned char *buf);
+extern void QueryTextExtentsReply (const unsigned char *buf);
+extern void ListFonts (const unsigned char *buf);
+extern void ListFontsReply (const unsigned char *buf);
+extern void ListFontsWithInfo (const unsigned char *buf);
+extern void ListFontsWithInfoReply (const unsigned char *buf);
+extern void SetFontPath (const unsigned char *buf);
+extern void GetFontPath (const unsigned char *buf);
+extern void GetFontPathReply (const unsigned char *buf);
+extern void CreatePixmap (const unsigned char *buf);
+extern void FreePixmap (const unsigned char *buf);
+extern void CreateGC (const unsigned char *buf);
+extern void ChangeGC (const unsigned char *buf);
+extern void CopyGC (const unsigned char *buf);
+extern void SetDashes (const unsigned char *buf);
+extern void SetClipRectangles (const unsigned char *buf);
+extern void FreeGC (const unsigned char *buf);
+extern void ClearArea (const unsigned char *buf);
+extern void CopyArea (const unsigned char *buf);
+extern void CopyPlane (const unsigned char *buf);
+extern void PolyPoint (const unsigned char *buf);
+extern void PolyLine (const unsigned char *buf);
+extern void PolySegment (const unsigned char *buf);
+extern void PolyRectangle (const unsigned char *buf);
+extern void PolyArc (const unsigned char *buf);
+extern void FillPoly (const unsigned char *buf);
+extern void PolyFillRectangle (const unsigned char *buf);
+extern void PolyFillArc (const unsigned char *buf);
+extern void PutImage (const unsigned char *buf);
+extern void GetImage (const unsigned char *buf);
+extern void GetImageReply (const unsigned char *buf);
+extern void PolyText8 (const unsigned char *buf);
+extern void PolyText16 (const unsigned char *buf);
+extern void ImageText8 (const unsigned char *buf);
+extern void ImageText16 (const unsigned char *buf);
+extern void CreateColormap (const unsigned char *buf);
+extern void FreeColormap (const unsigned char *buf);
+extern void CopyColormapAndFree (const unsigned char *buf);
+extern void InstallColormap (const unsigned char *buf);
+extern void UninstallColormap (const unsigned char *buf);
+extern void ListInstalledColormaps (const unsigned char *buf);
+extern void ListInstalledColormapsReply (const unsigned char *buf);
+extern void AllocColor (const unsigned char *buf);
+extern void AllocColorReply (const unsigned char *buf);
+extern void AllocNamedColor (const unsigned char *buf);
+extern void AllocNamedColorReply (const unsigned char *buf);
+extern void AllocColorCells (const unsigned char *buf);
+extern void AllocColorCellsReply (const unsigned char *buf);
+extern void AllocColorPlanes (const unsigned char *buf);
+extern void AllocColorPlanesReply (const unsigned char *buf);
+extern void FreeColors (const unsigned char *buf);
+extern void StoreColors (const unsigned char *buf);
+extern void StoreNamedColor (const unsigned char *buf);
+extern void QueryColors (const unsigned char *buf);
+extern void QueryColorsReply (const unsigned char *buf);
+extern void LookupColor (const unsigned char *buf);
+extern void LookupColorReply (const unsigned char *buf);
+extern void CreateCursor (const unsigned char *buf);
+extern void CreateGlyphCursor (const unsigned char *buf);
+extern void FreeCursor (const unsigned char *buf);
+extern void RecolorCursor (const unsigned char *buf);
+extern void QueryBestSize (const unsigned char *buf);
+extern void QueryBestSizeReply (const unsigned char *buf);
+extern void QueryExtension (const unsigned char *buf);
+extern void QueryExtensionReply (const unsigned char *buf);
+extern void ListExtensions (const unsigned char *buf);
+extern void ListExtensionsReply (const unsigned char *buf);
+extern void ChangeKeyboardMapping (const unsigned char *buf);
+extern void GetKeyboardMapping (const unsigned char *buf);
+extern void GetKeyboardMappingReply (const unsigned char *buf);
+extern void ChangeKeyboardControl (const unsigned char *buf);
+extern void GetKeyboardControl (const unsigned char *buf);
+extern void GetKeyboardControlReply (const unsigned char *buf);
+extern void Bell (const unsigned char *buf);
+extern void ChangePointerControl (const unsigned char *buf);
+extern void GetPointerControl (const unsigned char *buf);
+extern void GetPointerControlReply (const unsigned char *buf);
+extern void SetScreenSaver (const unsigned char *buf);
+extern void GetScreenSaver (const unsigned char *buf);
+extern void GetScreenSaverReply (const unsigned char *buf);
+extern void ChangeHosts (const unsigned char *buf);
+extern void ListHosts (const unsigned char *buf);
+extern void ListHostsReply (const unsigned char *buf);
+extern void SetAccessControl (const unsigned char *buf);
+extern void SetCloseDownMode (const unsigned char *buf);
+extern void KillClient (const unsigned char *buf);
+extern void RotateProperties (const unsigned char *buf);
+extern void ForceScreenSaver (const unsigned char *buf);
+extern void SetPointerMapping (const unsigned char *buf);
+extern void SetPointerMappingReply (const unsigned char *buf);
+extern void GetPointerMapping (const unsigned char *buf);
+extern void GetPointerMappingReply (const unsigned char *buf);
+extern void SetModifierMapping (const unsigned char *buf);
+extern void SetModifierMappingReply (const unsigned char *buf);
+extern void GetModifierMapping (const unsigned char *buf);
+extern void GetModifierMappingReply (const unsigned char *buf);
+extern void NoOperation (const unsigned char *buf);
/* prtype.c */
extern void SetIndentLevel (short which);
-extern void DumpHexBuffer (unsigned char *buf, long n);
-extern void DumpItem (char *name, FD fd, unsigned char *buf, long n);
-extern void PrintField (unsigned char *buf, short start, short length,
- short FieldType, char *name);
-extern int PrintBytes (unsigned char buf[], long number, char *name);
-extern void PrintValues (unsigned char *control, int clength, int ctype,
- unsigned char *values, char *name);
-extern void PrintTextList8 (unsigned char *buf, int length, char *name);
-extern void PrintTextList16 (unsigned char *buf, int length, char *name);
+extern void DumpHexBuffer (const unsigned char *buf, long n);
+extern void DumpItem (const char *name, FD fd,
+ const unsigned char *buf, long n);
+extern void PrintField (const unsigned char *buf, short start, short length,
+ short FieldType, const char *name);
+extern int PrintBytes (const unsigned char *buf, long number,
+ const char *name);
+extern void PrintValues (const unsigned char *control, int clength, int ctype,
+ const unsigned char *values, const char *name);
+extern void PrintTextList8 (const unsigned char *buf, int length,
+ const char *name);
+extern void PrintTextList16 (const unsigned char *buf, int length,
+ const char *name);
/* scope.c */
-extern void TestBreakPoints (unsigned char *buf, long n);
+extern void TestBreakPoints (const unsigned char *buf, long n);
extern void TimerExpired (void);
extern void SetUpPair (FD client, FD server);
extern FD FDPair (FD fd);
@@ -292,9 +296,9 @@ extern void ReadCommands (void);
/* server.c */
extern FD ConnectToServer (Boolean report);
-extern void ProcessBuffer (FD fd, unsigned char *buf, long n);
-extern void ReportFromClient (FD fd, unsigned char *buf, long n);
-extern void ReportFromServer (FD fd, unsigned char *buf, long n);
+extern void ProcessBuffer (FD fd, const unsigned char *buf, long n);
+extern void ReportFromClient (FD fd, const unsigned char *buf, long n);
+extern void ReportFromServer (FD fd, const unsigned char *buf, long n);
extern void PrintTime (void);
extern void SetBufLimit (FD fd);
extern void ClearBufLimit (FD fd);
@@ -302,16 +306,16 @@ extern void StartClientConnection (FD fd);
extern void StopClientConnection (FD fd);
extern void StartServerConnection (FD fd);
extern void StopServerConnection (FD fd);
-extern long StartSetUpMessage (FD fd, unsigned char *buf, long n);
-extern long StartSetUpReply (FD fd, unsigned char *buf, long n);
+extern long StartSetUpMessage (FD fd, const unsigned char *buf, long n);
+extern long StartSetUpReply (FD fd, const unsigned char *buf, long n);
-extern long GetXRequestFromName (char *name);
+extern long GetXRequestFromName (const char *name);
/* table11.c */
extern void InitializeX11 (void);
-extern TYPE DefineType (short typeid, short class, char *name,
- int (*printproc)(unsigned char *));
-extern void DefineEValue (TYPE type, long value, char *name);
+extern TYPE DefineType (short typeid, short class, const char *name,
+ int (*printproc)(const unsigned char *));
+extern void DefineEValue (TYPE type, long value, const char *name);
extern void DefineValues (TYPE type, long value, short length,
- short ctype, char *name);
-extern long GetEValue (short typeid, char *name);
+ short ctype, const char *name);
+extern long GetEValue (short typeid, const char *name);