summaryrefslogtreecommitdiff
path: root/x11.h
AgeCommit message (Collapse)AuthorFilesLines
2013-11-27Print correct event names for events sent via SendEvent requestsAlan Coopersmith1-0/+1
The high bit of an X11 event id is set to 0 for events generated by the server, 1 for events sent from another client via SendEvent requests. Previously xscope printed: ..............EVENT: **INVALID** (150) Now it prints: ..............EVENT: ConfigureNotify source: SendEvent Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-07avoid conflicts with Solaris <sys/regset.h> #define of CSAlan Coopersmith1-0/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Update RANDR support from 0.x to include 1.0 - 1.4Alan Coopersmith1-0/+15
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Refactor error printing to use common functionsAlan Coopersmith1-0/+5
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-02Convert ValueRec structures from unsigned long to uint32_t valuesAlan Coopersmith1-8/+8
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-0/+14
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-10-02ILong: shift each byte individually, then OR them togetherAlan Coopersmith1-2/+2
instead of shifting the whole word as each byte is loaded into place Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Move ILong, IShort, etal to inline functions in x11.hAlan Coopersmith1-7/+56
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Convert ILong, IShort, etal to return C99 uint*_t typesAlan Coopersmith1-4/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-21Define *HEADER constants as string pointers, not arraysAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-21Convert to X.Org standard indentation & cleanup whitespaceAlan Coopersmith1-184/+182
Performed with util/modular/x-indent-all.sh, followed by manual fixups Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-11Remove extra definition of ScopeEnabled from x11.hAlan Coopersmith1-2/+0
It's already defined in scope.h, which is more widely #included and a more logical home for it. Clears a bunch of gcc warnings of: scope.h:125:13: warning: redundant redeclaration of ‘ScopeEnabled’ x11.h:266:13: note: previous declaration of ‘ScopeEnabled’ was here Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-30Make CS dynamically allocatedAlan Coopersmith1-1/+1
We still allocate one ConnState struct for every possible FD up front instead of resizing as needed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-10-30Sun's copyrights now belong to OracleAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-23Add basic support for GLX extensionKristian Høgsberg1-0/+5
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
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-08-12Update Render extension decoding from protocol rev 0.5 to 0.11Alan Coopersmith1-0/+2
Filled in most, but not all, of the details for new & existing requests Corrected print-outs several existing requests Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-12Add GenericEvent supportAlan Coopersmith1-0/+5
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-05-06Make big requests support work without modifying bufferAlan Coopersmith1-0/+10
Fixes corruption of big requests data in -v4/raw output Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Constify many char pointersAlan Coopersmith1-61/+68
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Ansify prototypes and move extern declarations to header filesAlan Coopersmith1-16/+23
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Merge branch 'keithp'Alan Coopersmith1-47/+132
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 lots more Render stuffKeith Packard1-0/+32
2009-05-04Add (some) support for BIG-REQUESTSKeith Packard1-0/+2
2009-05-04Import xscope bits into keithp.com CVSKeith Packard1-124/+174
2008-09-11Merge Sun's version of xscope inStuart Kreitman1-129/+160
Conversion to ANSI C SysVR4 support Conversion of networking code to use xtrans
2008-09-11Import initial version from James PetersonAlan Coopersmith1-0/+452