xscope: Changes to 'master'
Alan Coopersmith
alanc at kemper.freedesktop.org
Wed Oct 3 19:30:25 PDT 2012
COPYING | 3
common.c | 11
configure.ac | 2
decode_randr.c | 465 +++++++++++++++++
decode_render.c | 33 +
extensions.h | 3
fd.c | 35 -
fd.h | 1
man/xscope.man | 14
print11.c | 338 ++++++------
print_randr.c | 1477 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
print_render.c | 44 -
proto.h | 5
prtype.c | 116 +++-
randrscope.h | 110 ++++
scope.c | 406 ++++++++++++++-
scope.h | 6
server.c | 63 --
table11.c | 69 ++
x11.h | 117 +++-
20 files changed, 2923 insertions(+), 395 deletions(-)
New commits:
commit b4de85b1b63d03322c2c831002bd5aa6418347ba
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Tue Aug 28 23:35:37 2012 -0700
Update RANDR support from 0.x to include 1.0 - 1.4
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 95a436f7efd7061a15e3be533c56e573aac2db92
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Aug 26 21:45:45 2012 -0700
Refactor error printing to use common functions
All errors currently recognized by xscope fall into two forms,
with or without a 32-bit value to print as a bad value, so use
common implementations for those two forms so we can stop
duplicating that code for every new extension-defined error.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 8b26ded773e1cd4890e93836692ecc9f136c5efd
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 21 23:42:23 2012 -0700
Add experimental support for reading a previously recorded file
If you run "xscope -r -v0 > xscope.raw", then you can later run
"xscope -f xscope.raw" to decode the data.
Mainly adding this to aid in testing decoding of new extensions,
so I don't have to re-run the commands over and over, just replay
a log file. (Which may or may not have been edited to include
additional request data for further testing of types & formats
that clients may not make it easy to generate.)
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 5cf76eb8f489f6c4d1ba76bf6fe782c3cf45803d
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 21 11:36:18 2012 -0700
Refactor fd closing into CloseFD helper function
All versions now perform same check for XtransConn data to decide
whether to use _X11TransClose or regular close, which is needed for
being able to read data from pre-recorded files instead of live sockets.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Mark Kettenis <kettenis at openbsd.org>
commit d325cc4930d7e04bd09d54548c6dc58329cfc15b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 21 11:02:00 2012 -0700
When Verbose == 0, don't print number of data items in unknown reply types
We don't print any other data from packet when Verbose == 0, just had
a few random "data: (6)" type lines sneak through.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 41692eb416df3bff1e5a10b8c71058248c5d9308
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Fri Jul 20 23:00:33 2012 -0700
Add -I command line flag to enter interactive mode at startup
Avoids having to try to time a ^C after the signal handler is set up
but before any data is handled.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 519488decdfe224c79e7f2f18e36d2ecae2166a2
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 15 12:54:38 2012 -0700
Add support for printing more types of property value
Prints atoms, cardinals, integers, and windows as formatted values
instead of lists of bytes.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit d678ab80b2987ddd696519a27dad5571c379b511
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 15 02:01:41 2012 -0700
Print UTF8_STRING properties as text if locale uses UTF-8 charset
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Mark Kettenis <kettenis at openbsd.org>
commit 95a96dbdc483d9dc6371f52a9e41771a64d23aed
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 15 01:32:49 2012 -0700
Create PrintPropertyValues function for property requests
Currently used for core protocol window properties, but will be
used for extensions that have similar property handling requests
in the future.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 9a8ad93043569c2717bd88f0264e0d3a28b56a74
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 15 01:30:16 2012 -0700
Record atoms from InternAtom and GetAtomName requests
Uses them to display strings instead of just numeric ids for atoms
beyond the builtin set in other requests, such as property lookups.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 510c5429e4c2e2f4d8752e688e9fbc008523774d
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 14 23:16:17 2012 -0700
Convert ValueRec structures from unsigned long to uint32_t values
Used for GC struct members, which are defined in the protocol as 32-bit,
so no need to waste time and memory copying into 64-bit longs everywhere
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit e1e857744290f0a09d60435e8d5997efb0a436ba
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 14 22:35:18 2012 -0700
Handle big-requests when calculating request contents from length field
Adds a getreqlen inline function to handle the big requests check.
As noted in the comment, it must be called *before* the printreqlen
macro does its own check, since printreqlen "fixes" the buf pointer
when it's done to align all the remaining fields with their correct
positions after skipping over the extra big requests 32-bit length
field after the normal 16-bit length field.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 4ba266b7b08cf5914b5ec6912763d319f57f00bc
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 14 22:59:17 2012 -0700
ILong: shift each byte individually, then OR them together
instead of shifting the whole word as each byte is loaded into place
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 5ec0ba545da0a9e52e2c6a473dbbc81b4a6f7f96
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 14 22:24:17 2012 -0700
Move ILong, IShort, etal to inline functions in x11.h
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit fdd58cacbb5b93b74ba9ba766e752b922a7c8b9c
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Jul 14 22:16:27 2012 -0700
Convert ILong, IShort, etal to return C99 uint*_t types
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 9b9f7c3cacc1d220962fab1b910c6d76e2cd8087
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 18:20:12 2012 -0700
Convert remaining bcopy() calls to memcpy()
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Mark Kettenis <kettenis at openbsd.org>
commit 5425131a498cdab54fbcfbae4991b22ebfa793ee
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 18:13:10 2012 -0700
Add _X_NORETURN to additional functions suggested by gcc warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit f0df23d778ae5b85745de0e48729b039b5b3f69a
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 18:09:54 2012 -0700
Convert remaining sprintf calls to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Mark Kettenis <kettenis at openbsd.org>
commit d5cc5b0e6b4e9cd1ee35e58069018f75bb0a3ed3
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 15:01:56 2012 -0700
SaveBytes: drop unnecessary casts in bcopy() call
Clears gcc warning from casting a const char * to char *:
server.c: In function `SaveBytes':
server.c:203: warning: cast discards qualifiers from pointer target type
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Mark Kettenis <kettenis at openbsd.org>
commit 29ec5378ff7eae6b14a49347008ea35db069b936
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 14:57:45 2012 -0700
Move debug statement before panic() call, so it can actually run
Fixes compiler warning:
"fd.c", line 481: warning: statement not reached
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 36ddba4f6f916eabfc94a22cf7845221f1d4a3cb
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 13:27:37 2012 -0700
Define *HEADER constants as string pointers, not arrays
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit c7e1d62267ad0296fbe29c00cd6b54a1ee1f93e0
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 13:21:33 2012 -0700
Combine usage message into single string for fprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit e38f959f756a0a3d4ce17e6e2735cfd411fd9d82
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 8 13:18:58 2012 -0700
Use local variable for ioctl argument instead of a static
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list