diff options
author | Keith Packard <keithp@keithp.com> | 2002-01-01 07:51:45 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-04 18:14:08 -0700 |
commit | af92a00b953746d64e1394d1988e77ffc3142df8 (patch) | |
tree | e0a5eca7764d21cd0e22c7d3f490fb50d9d019e7 /print11.c | |
parent | 093842a5e11bb5c0fd17b51a6c037634b5a3a223 (diff) | |
download | xscope-af92a00b953746d64e1394d1988e77ffc3142df8.tar.gz |
Add (some) support for BIG-REQUESTS
Diffstat (limited to 'print11.c')
-rw-r--r-- | print11.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -874,7 +874,8 @@ MappingNotifyEvent(buf) /* Request and Reply Printing procedures */ -ExtendedRequest(buf) +ExtendedRequest(fd, buf) + int fd; unsigned char *buf; { short n; @@ -885,7 +886,7 @@ ExtendedRequest(buf) PrintField(SBf, 0, 4, CARD32, "sequence number"); PrintField(buf, 1, 1, CARD8, "minor opcode"); printfield (buf, 2, 2, DVALUE2(n-1), "request length"); - n = IShort(&buf[2]) - 1; + n = CS[fd].requestLen - 1; (void) PrintList (&buf[4], n, CARD32, "data"); } @@ -3304,6 +3305,7 @@ QueryExtensionReply(buf) extern unsigned char LookForRENDERFlag; extern unsigned char LookForRANDRFlag; extern unsigned char LookForMITSHMFlag; + extern unsigned char LookForBIGREQFlag; #ifdef PEX extern unsigned char LookForPEXFlag; extern unsigned char PEXCode; @@ -3330,6 +3332,9 @@ QueryExtensionReply(buf) if (LookForMITSHMFlag) { InitializeMITSHM(buf); } + if (LookForBIGREQFlag) { + InitializeBIGREQ(buf); + } PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* QueryExtension */ ; if (Verbose < 1) return; |