~ubuntu-branches/ubuntu/vivid/x11proto-core/vivid

« back to all changes in this revision

Viewing changes to Xproto.h

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2014-04-14 20:38:23 UTC
  • mfrom: (1.1.17) (18.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20140414203823-jopda5b9u2hg42di
Tags: 7.0.26-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
typedef CARD16 KeyButMask;
260
260
 
261
261
/***************** 
262
 
   connection setup structure.  This is followed by
263
 
   numRoots xWindowRoot structs.
 
262
   Connection setup structures.  See Chapter 8: Connection Setup
 
263
   of the X Window System Protocol specification for details.
264
264
*****************/
265
265
 
 
266
/* Client initiates handshake with this data, followed by the strings
 
267
 * for the auth protocol & data.
 
268
 */
266
269
typedef struct {
267
270
    CARD8       byteOrder;
268
271
    BYTE        pad;
272
275
    CARD16      pad2 B16;
273
276
} xConnClientPrefix;
274
277
 
 
278
/* Server response to xConnClientPrefix.
 
279
 *
 
280
 * If success == Success, this is followed by xConnSetup and
 
281
 * numRoots xWindowRoot structs.
 
282
 *
 
283
 * If success == Failure, this is followed by a reason string.
 
284
 *
 
285
 * The protocol also defines a case of success == Authenticate, but
 
286
 * that doesn't seem to have ever been implemented by the X Consortium.
 
287
 */
275
288
typedef struct {
276
289
    CARD8          success;
277
290
    BYTE           lengthReason; /*num bytes in string following if failure */
625
638
    CARD16 sequenceNumber B16;
626
639
    CARD32 length B32;  /* definitely > 0, even if "nCharInfos" is 0 */
627
640
    xCharInfo minBounds; 
628
 
#ifndef WORD64
629
641
    CARD32 walign1 B32;
630
 
#endif
631
642
    xCharInfo maxBounds; 
632
 
#ifndef WORD64
633
643
    CARD32 walign2 B32;
634
 
#endif
635
644
    CARD16 minCharOrByte2 B16, maxCharOrByte2 B16;
636
645
    CARD16 defaultChar B16;
637
646
    CARD16 nFontProps B16;  /* followed by this many xFontProp structures */
674
683
    CARD16 sequenceNumber B16;
675
684
    CARD32 length B32;  /* definitely > 0, even if "nameLength" is 0 */
676
685
    xCharInfo minBounds; 
677
 
#ifndef WORD64
678
686
    CARD32 walign1 B32;
679
 
#endif
680
687
    xCharInfo maxBounds; 
681
 
#ifndef WORD64
682
688
    CARD32 walign2 B32;
683
 
#endif
684
689
    CARD16 minCharOrByte2 B16, maxCharOrByte2 B16;
685
690
    CARD16 defaultChar B16;
686
691
    CARD16 nFontProps B16;  /* followed by this many xFontProp structures */
1447
1452
    CARD16 length B16;
1448
1453
    Window destination B32;
1449
1454
    CARD32 eventMask B32;
1450
 
#ifdef WORD64
1451
 
    /* the structure should have been quad-aligned */
1452
 
    BYTE eventdata[SIZEOF(xEvent)];
1453
 
#else
1454
1455
    xEvent event;
1455
 
#endif /* WORD64 */
1456
1456
} xSendEventReq;
1457
1457
 
1458
1458
typedef struct {