Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:29

0001 /************************************************************
0002 Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc.
0003 Permission to use, copy, modify, and distribute this
0004 software and its documentation for any purpose and without
0005 fee is hereby granted, provided that the above copyright
0006 notice appear in all copies and that both that copyright
0007 notice and this permission notice appear in supporting
0008 documentation, and that the name of Silicon Graphics not be
0009 used in advertising or publicity pertaining to distribution
0010 of the software without specific prior written permission.
0011 Silicon Graphics makes no representation about the suitability
0012 of this software for any purpose. It is provided "as is"
0013 without any express or implied warranty.
0014 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
0015 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0016 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
0017 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
0018 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
0019 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
0020 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
0021 THE USE OR PERFORMANCE OF THIS SOFTWARE.
0022 ********************************************************/
0023 
0024 #ifndef _EVIPROTO_H_
0025 #define _EVIPROTO_H_
0026 
0027 #include <X11/extensions/EVI.h>
0028 
0029 #define X_EVIQueryVersion       0
0030 #define X_EVIGetVisualInfo      1
0031 
0032 #define VisualID CARD32
0033 
0034 typedef CARD32 VisualID32;
0035 #define sz_VisualID32 4
0036 
0037 typedef struct _xExtendedVisualInfo {
0038     VisualID    core_visual_id B32;
0039     INT8    screen;
0040     INT8    level;
0041     CARD8   transparency_type;
0042     CARD8   pad0;
0043     CARD32  transparency_value B32;
0044     CARD8   min_hw_colormaps;
0045     CARD8   max_hw_colormaps;
0046     CARD16  num_colormap_conflicts B16;
0047 } xExtendedVisualInfo;
0048 #define sz_xExtendedVisualInfo 16
0049 
0050 typedef struct _XEVIQueryVersion {
0051     CARD8   reqType;        /* always XEVIReqCode */
0052     CARD8   xeviReqType;        /* always X_EVIQueryVersion */
0053     CARD16  length B16;
0054 } xEVIQueryVersionReq;
0055 #define sz_xEVIQueryVersionReq  4
0056 
0057 typedef struct {
0058     BYTE    type;           /* X_Reply */
0059     CARD8   unused;
0060     CARD16  sequenceNumber B16;
0061     CARD32  length B32;
0062     CARD16  majorVersion B16;   /* major version of EVI protocol */
0063     CARD16  minorVersion B16;   /* minor version of EVI protocol */
0064     CARD32  pad0 B32;
0065     CARD32  pad1 B32;
0066     CARD32  pad2 B32;
0067     CARD32  pad3 B32;
0068     CARD32  pad4 B32;
0069 } xEVIQueryVersionReply;
0070 #define sz_xEVIQueryVersionReply    32
0071 
0072 typedef struct _XEVIGetVisualInfoReq {
0073     CARD8   reqType;    /* always XEVIReqCode */
0074     CARD8   xeviReqType;    /* always X_EVIGetVisualInfo */
0075     CARD16      length B16;
0076     CARD32  n_visual B32;
0077 } xEVIGetVisualInfoReq;
0078 #define sz_xEVIGetVisualInfoReq 8
0079 
0080 typedef struct _XEVIGetVisualInfoReply {
0081     BYTE    type;  /* X_Reply */
0082     CARD8   unused;
0083     CARD16  sequenceNumber B16;
0084     CARD32  length B32;
0085     CARD32  n_info B32;
0086     CARD32  n_conflicts B32;
0087     CARD32  pad0 B32;
0088     CARD32  pad1 B32;
0089     CARD32  pad2 B32;
0090     CARD32  pad3 B32;
0091 } xEVIGetVisualInfoReply;
0092 #define sz_xEVIGetVisualInfoReply   32
0093 
0094 #undef VisualID
0095 
0096 #endif /* _EVIPROTO_H_ */