summaryrefslogtreecommitdiff
path: root/print11.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-03xscope: Fix unknown GenericEvent type decodingDaniel Stone1-1/+1
Transposed parameters meant that it was printing the sequence number rather than the type. Signed-off-by: Daniel Stone <daniels@collabora.com>
2012-10-02Refactor error printing to use common functionsAlan Coopersmith1-111/+39
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@oracle.com>
2012-10-02When Verbose == 0, don't print number of data items in unknown reply typesAlan Coopersmith1-0/+2
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@oracle.com>
2012-10-02Create PrintPropertyValues function for property requestsAlan Coopersmith1-11/+5
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@oracle.com>
2012-10-02Record atoms from InternAtom and GetAtomName requestsAlan Coopersmith1-1/+91
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@oracle.com>
2012-10-02Convert ValueRec structures from unsigned long to uint32_t valuesAlan Coopersmith1-2/+2
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@oracle.com>
2012-10-02Handle big-requests when calculating request contents from length fieldAlan Coopersmith1-33/+33
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@oracle.com>
2012-07-21Define *HEADER constants as string pointers, not arraysAlan Coopersmith1-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-21Convert to X.Org standard indentation & cleanup whitespaceAlan Coopersmith1-3269/+2973
Performed with util/modular/x-indent-all.sh, followed by manual fixups Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30Sun's copyrights now belong to OracleAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-01-14Update Sun license notices to current X.Org standard formAlan Coopersmith1-23/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-29Decode ServerInterpreted addresses in HOST structuresAlan Coopersmith1-6/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-12Add GenericEvent supportAlan Coopersmith1-0/+17
Allows extensions to register their own decoders for GenericEvents, though none do, since XInput isn't decoded yet Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-12Print more useful messages for unknown replies, events & errorsAlan Coopersmith1-0/+25
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Make big requests support work without modifying bufferAlan Coopersmith1-121/+242
Fixes corruption of big requests data in -v4/raw output Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Report names for all extensions, not just those we knowAlan Coopersmith1-25/+0
Move extension handling to new extensions.c & extensions.h files Start to make extension handling more generic/modular/extendable Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Constify many char pointersAlan Coopersmith1-227/+227
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Ansify prototypes and move extern declarations to header filesAlan Coopersmith1-444/+445
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Delete PEX codeAlan Coopersmith1-10/+1
2009-05-06Merge branch 'keithp'Alan Coopersmith1-141/+389
Conflicts: common.c decode11.c fd.c fd.h print11.c prtype.c scope.c scope.h server.c table11.c x11.h xscope.man
2009-05-04Add (some) support for BIG-REQUESTSKeith Packard1-2/+7
2009-05-04Add SHM decodingKeith Packard1-0/+4
2009-05-04Import xscope bits into keithp.com CVSKeith Packard1-225/+466
2008-09-11Merge Sun's version of xscope inStuart Kreitman1-170/+398
Conversion to ANSI C SysVR4 support Conversion of networking code to use xtrans
2008-09-11Import initial version from James PetersonAlan Coopersmith1-0/+3576