9 struct xconn_setup_header {
10 char byteorder, unused1;
11 CARD16 proto_major, proto_minor;
12 CARD16 auth_name_length;
13 CARD16 auth_data_length;
17 * - pad to next 32bit-aligned address
19 * - pad to next 32bit-aligned address
23 struct xconn_accept_header {
24 CARD8 success, unused1;
25 CARD16 proto_major, proto_minor;
26 CARD16 add_length; /* 8+2*numfmt+(vendor_len+pad+m?)/4 */
28 CARD32 resid_base, resid_mask;
29 CARD32 motionbuf_size;
31 CARD16 max_req_length;
35 CARD8 bm_fmt_bitorder;
36 CARD8 bm_fmt_scanline_unit;
37 CARD8 bm_fmt_scanline_pad;
38 KEYCODE min_keycode, max_keycode;
41 * - vendor string of size vendor_length
42 * - pad to next 32bit-aligned address
43 * - 8*num_pixfmt pixel formats
44 * - list of screens (multiple of 4?)
55 struct xrequest_header {
81 /* in-place byteorder swapping functions for all protocol structures */
82 void swap_xconn_accept(struct xconn_accept_header *hdr);
84 void swap_xreq_header(struct xrequest_header *hdr);
85 /* TODO: all possible requests */