Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:17

0001 /*
0002 
0003 Copyright 1987, 1988, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 */
0026 
0027 #ifndef _XCUPPROTO_H_ /* { */
0028 #define _XCUPPROTO_H_
0029 
0030 #include <X11/extensions/cup.h>
0031 
0032 #define X_XcupQueryVersion          0
0033 #define X_XcupGetReservedColormapEntries    1
0034 #define X_XcupStoreColors           2
0035 
0036 typedef struct _XcupQueryVersion {
0037     CARD8   reqType;    /* always XcupReqCode */
0038     CARD8   xcupReqType;    /* always X_XcupQueryVersion */
0039     CARD16  length B16;
0040     CARD16  client_major_version B16;
0041     CARD16  client_minor_version B16;
0042 } xXcupQueryVersionReq;
0043 #define sz_xXcupQueryVersionReq     8
0044 
0045 typedef struct {
0046     BYTE    type;       /* X_Reply */
0047     BOOL    pad1;
0048     CARD16  sequence_number B16;
0049     CARD32  length B32;
0050     CARD16  server_major_version B16;
0051     CARD16  server_minor_version B16;
0052     CARD32  pad2 B32;
0053     CARD32  pad3 B32;
0054     CARD32  pad4 B32;
0055     CARD32  pad5 B32;
0056     CARD32  pad6 B32;
0057 } xXcupQueryVersionReply;
0058 #define sz_xXcupQueryVersionReply   32
0059 
0060 typedef struct _XcupGetReservedColormapEntries {
0061     CARD8   reqType;    /* always XcupReqCode */
0062     CARD8   xcupReqType;    /* always X_XcupGetReservedColormapEntries */
0063     CARD16  length B16;
0064     CARD32  screen B32;
0065 } xXcupGetReservedColormapEntriesReq;
0066 #define sz_xXcupGetReservedColormapEntriesReq 8
0067 
0068 typedef struct {
0069     BYTE    type;       /* X_Reply */
0070     BOOL    pad1;
0071     CARD16  sequence_number B16;
0072     CARD32  length B32;
0073     CARD32  pad2 B32;
0074     CARD32  pad3 B32;
0075     CARD32  pad4 B32;
0076     CARD32  pad5 B32;
0077     CARD32  pad6 B32;
0078     CARD32  pad7 B32;
0079 } xXcupGetReservedColormapEntriesReply;
0080 #define sz_xXcupGetReservedColormapEntriesReply     32
0081 
0082 typedef struct _XcupStoreColors {
0083     CARD8   reqType;    /* always XcupReqCode */
0084     CARD8   xcupReqType;    /* always X_XcupStoreColors */
0085     CARD16  length B16;
0086     CARD32  cmap B32;
0087 } xXcupStoreColorsReq;
0088 #define sz_xXcupStoreColorsReq      8
0089 
0090 typedef struct {
0091     BYTE    type;       /* X_Reply */
0092     BOOL    pad1;
0093     CARD16  sequence_number B16;
0094     CARD32  length B32;
0095     CARD32  pad2 B32;
0096     CARD32  pad3 B32;
0097     CARD32  pad4 B32;
0098     CARD32  pad5 B32;
0099     CARD32  pad6 B32;
0100     CARD32  pad7 B32;
0101 } xXcupStoreColorsReply;
0102 #define sz_xXcupStoreColorsReply    32
0103 
0104 #endif /* } _XCUPPROTO_H_ */
0105