diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:30:29 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:44:37 -0700 |
commit | 0167af41624e8ef86b657d83ece09fe4e12fd6a2 (patch) | |
tree | 7d054011f293d97713f7662b35afacb381696d36 /proto.h | |
parent | aec53bc090ef6b63e16efebab3f8c8e6f329eb6b (diff) | |
download | xscope-0167af41624e8ef86b657d83ece09fe4e12fd6a2.tar.gz |
Make big requests support work without modifying buffer
Fixes corruption of big requests data in -v4/raw output
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 240 |
1 files changed, 120 insertions, 120 deletions
@@ -81,166 +81,166 @@ extern void MappingNotifyEvent (const unsigned char *buf); extern void ExtendedRequest (int fd, const unsigned char *buf); extern void UnknownReply (const 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 CreateWindow (FD fd, const unsigned char *buf); +extern void ChangeWindowAttributes (FD fd, const unsigned char *buf); +extern void GetWindowAttributes (FD fd, 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 DestroyWindow (FD fd, const unsigned char *buf); +extern void DestroySubwindows (FD fd, const unsigned char *buf); +extern void ChangeSaveSet (FD fd, const unsigned char *buf); +extern void ReparentWindow (FD fd, const unsigned char *buf); +extern void MapWindow (FD fd, const unsigned char *buf); +extern void MapSubwindows (FD fd, const unsigned char *buf); +extern void UnmapWindow (FD fd, const unsigned char *buf); +extern void UnmapSubwindows (FD fd, const unsigned char *buf); +extern void ConfigureWindow (FD fd, const unsigned char *buf); +extern void CirculateWindow (FD fd, const unsigned char *buf); +extern void GetGeometry (FD fd, const unsigned char *buf); extern void GetGeometryReply (const unsigned char *buf); -extern void QueryTree (const unsigned char *buf); +extern void QueryTree (FD fd, const unsigned char *buf); extern void QueryTreeReply (const unsigned char *buf); -extern void InternAtom (const unsigned char *buf); +extern void InternAtom (FD fd, const unsigned char *buf); extern void InternAtomReply (const unsigned char *buf); -extern void GetAtomName (const unsigned char *buf); +extern void GetAtomName (FD fd, 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 ChangeProperty (FD fd, const unsigned char *buf); +extern void DeleteProperty (FD fd, const unsigned char *buf); +extern void GetProperty (FD fd, const unsigned char *buf); extern void GetPropertyReply (const unsigned char *buf); -extern void ListProperties (const unsigned char *buf); +extern void ListProperties (FD fd, 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 SetSelectionOwner (FD fd, const unsigned char *buf); +extern void GetSelectionOwner (FD fd, 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 ConvertSelection (FD fd, const unsigned char *buf); +extern void SendEvent (FD fd, const unsigned char *buf); +extern void GrabPointer (FD fd, 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 UngrabPointer (FD fd, const unsigned char *buf); +extern void GrabButton (FD fd, const unsigned char *buf); +extern void UngrabButton (FD fd, const unsigned char *buf); +extern void ChangeActivePointerGrab (FD fd, const unsigned char *buf); +extern void GrabKeyboard (FD fd, 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 UngrabKeyboard (FD fd, const unsigned char *buf); +extern void GrabKey (FD fd, const unsigned char *buf); +extern void UngrabKey (FD fd, const unsigned char *buf); +extern void AllowEvents (FD fd, const unsigned char *buf); +extern void GrabServer (FD fd, const unsigned char *buf); +extern void UngrabServer (FD fd, const unsigned char *buf); +extern void QueryPointer (FD fd, const unsigned char *buf); extern void QueryPointerReply (const unsigned char *buf); -extern void GetMotionEvents (const unsigned char *buf); +extern void GetMotionEvents (FD fd, const unsigned char *buf); extern void GetMotionEventsReply (const unsigned char *buf); -extern void TranslateCoordinates (const unsigned char *buf); +extern void TranslateCoordinates (FD fd, 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 WarpPointer (FD fd, const unsigned char *buf); +extern void SetInputFocus (FD fd, const unsigned char *buf); +extern void GetInputFocus (FD fd, const unsigned char *buf); extern void GetInputFocusReply (const unsigned char *buf); -extern void QueryKeymap (const unsigned char *buf); +extern void QueryKeymap (FD fd, 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 OpenFont (FD fd, const unsigned char *buf); +extern void CloseFont (FD fd, const unsigned char *buf); +extern void QueryFont (FD fd, const unsigned char *buf); extern void QueryFontReply (const unsigned char *buf); -extern void QueryTextExtents (const unsigned char *buf); +extern void QueryTextExtents (FD fd, const unsigned char *buf); extern void QueryTextExtentsReply (const unsigned char *buf); -extern void ListFonts (const unsigned char *buf); +extern void ListFonts (FD fd, const unsigned char *buf); extern void ListFontsReply (const unsigned char *buf); -extern void ListFontsWithInfo (const unsigned char *buf); +extern void ListFontsWithInfo (FD fd, 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 SetFontPath (FD fd, const unsigned char *buf); +extern void GetFontPath (FD fd, 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 CreatePixmap (FD fd, const unsigned char *buf); +extern void FreePixmap (FD fd, const unsigned char *buf); +extern void CreateGC (FD fd, const unsigned char *buf); +extern void ChangeGC (FD fd, const unsigned char *buf); +extern void CopyGC (FD fd, const unsigned char *buf); +extern void SetDashes (FD fd, const unsigned char *buf); +extern void SetClipRectangles (FD fd, const unsigned char *buf); +extern void FreeGC (FD fd, const unsigned char *buf); +extern void ClearArea (FD fd, const unsigned char *buf); +extern void CopyArea (FD fd, const unsigned char *buf); +extern void CopyPlane (FD fd, const unsigned char *buf); +extern void PolyPoint (FD fd, const unsigned char *buf); +extern void PolyLine (FD fd, const unsigned char *buf); +extern void PolySegment (FD fd, const unsigned char *buf); +extern void PolyRectangle (FD fd, const unsigned char *buf); +extern void PolyArc (FD fd, const unsigned char *buf); +extern void FillPoly (FD fd, const unsigned char *buf); +extern void PolyFillRectangle (FD fd, const unsigned char *buf); +extern void PolyFillArc (FD fd, const unsigned char *buf); +extern void PutImage (FD fd, const unsigned char *buf); +extern void GetImage (FD fd, 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 PolyText8 (FD fd, const unsigned char *buf); +extern void PolyText16 (FD fd, const unsigned char *buf); +extern void ImageText8 (FD fd, const unsigned char *buf); +extern void ImageText16 (FD fd, const unsigned char *buf); +extern void CreateColormap (FD fd, const unsigned char *buf); +extern void FreeColormap (FD fd, const unsigned char *buf); +extern void CopyColormapAndFree (FD fd, const unsigned char *buf); +extern void InstallColormap (FD fd, const unsigned char *buf); +extern void UninstallColormap (FD fd, const unsigned char *buf); +extern void ListInstalledColormaps (FD fd, const unsigned char *buf); extern void ListInstalledColormapsReply (const unsigned char *buf); -extern void AllocColor (const unsigned char *buf); +extern void AllocColor (FD fd, const unsigned char *buf); extern void AllocColorReply (const unsigned char *buf); -extern void AllocNamedColor (const unsigned char *buf); +extern void AllocNamedColor (FD fd, const unsigned char *buf); extern void AllocNamedColorReply (const unsigned char *buf); -extern void AllocColorCells (const unsigned char *buf); +extern void AllocColorCells (FD fd, const unsigned char *buf); extern void AllocColorCellsReply (const unsigned char *buf); -extern void AllocColorPlanes (const unsigned char *buf); +extern void AllocColorPlanes (FD fd, 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 FreeColors (FD fd, const unsigned char *buf); +extern void StoreColors (FD fd, const unsigned char *buf); +extern void StoreNamedColor (FD fd, const unsigned char *buf); +extern void QueryColors (FD fd, const unsigned char *buf); extern void QueryColorsReply (const unsigned char *buf); -extern void LookupColor (const unsigned char *buf); +extern void LookupColor (FD fd, 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 CreateCursor (FD fd, const unsigned char *buf); +extern void CreateGlyphCursor (FD fd, const unsigned char *buf); +extern void FreeCursor (FD fd, const unsigned char *buf); +extern void RecolorCursor (FD fd, const unsigned char *buf); +extern void QueryBestSize (FD fd, const unsigned char *buf); extern void QueryBestSizeReply (const unsigned char *buf); -extern void QueryExtension (const unsigned char *buf); +extern void QueryExtension (FD fd, const unsigned char *buf); extern void QueryExtensionReply (const unsigned char *buf); -extern void ListExtensions (const unsigned char *buf); +extern void ListExtensions (FD fd, 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 ChangeKeyboardMapping (FD fd, const unsigned char *buf); +extern void GetKeyboardMapping (FD fd, 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 ChangeKeyboardControl (FD fd, const unsigned char *buf); +extern void GetKeyboardControl (FD fd, 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 Bell (FD fd, const unsigned char *buf); +extern void ChangePointerControl (FD fd, const unsigned char *buf); +extern void GetPointerControl (FD fd, 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 SetScreenSaver (FD fd, const unsigned char *buf); +extern void GetScreenSaver (FD fd, 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 ChangeHosts (FD fd, const unsigned char *buf); +extern void ListHosts (FD fd, 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 SetAccessControl (FD fd, const unsigned char *buf); +extern void SetCloseDownMode (FD fd, const unsigned char *buf); +extern void KillClient (FD fd, const unsigned char *buf); +extern void RotateProperties (FD fd, const unsigned char *buf); +extern void ForceScreenSaver (FD fd, const unsigned char *buf); +extern void SetPointerMapping (FD fd, const unsigned char *buf); extern void SetPointerMappingReply (const unsigned char *buf); -extern void GetPointerMapping (const unsigned char *buf); +extern void GetPointerMapping (FD fd, const unsigned char *buf); extern void GetPointerMappingReply (const unsigned char *buf); -extern void SetModifierMapping (const unsigned char *buf); +extern void SetModifierMapping (FD fd, const unsigned char *buf); extern void SetModifierMappingReply (const unsigned char *buf); -extern void GetModifierMapping (const unsigned char *buf); +extern void GetModifierMapping (FD fd, const unsigned char *buf); extern void GetModifierMappingReply (const unsigned char *buf); -extern void NoOperation (const unsigned char *buf); +extern void NoOperation (FD fd, const unsigned char *buf); /* prtype.c */ extern void SetIndentLevel (short which); |