1706f2543Smrg/*****************************************************************
2706f2543Smrg
3706f2543SmrgCopyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
4706f2543Smrg
5706f2543SmrgPermission is hereby granted, free of charge, to any person obtaining a copy
6706f2543Smrgof this software and associated documentation files (the "Software"), to deal
7706f2543Smrgin the Software without restriction, including without limitation the rights
8706f2543Smrgto use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9706f2543Smrgcopies of the Software.
10706f2543Smrg
11706f2543SmrgThe above copyright notice and this permission notice shall be included in
12706f2543Smrgall copies or substantial portions of the Software.
13706f2543Smrg
14706f2543SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15706f2543SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16706f2543SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17706f2543SmrgDIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
18706f2543SmrgBUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
19706f2543SmrgWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
20706f2543SmrgIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21706f2543Smrg
22706f2543SmrgExcept as contained in this notice, the name of Digital Equipment Corporation
23706f2543Smrgshall not be used in advertising or otherwise to promote the sale, use or other
24706f2543Smrgdealings in this Software without prior written authorization from Digital
25706f2543SmrgEquipment Corporation.
26706f2543Smrg
27706f2543Smrg******************************************************************/
28706f2543Smrg
29706f2543Smrg
30706f2543Smrg/* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
31706f2543Smrg
32706f2543Smrg/*
33706f2543Smrg *	PanoramiX definitions
34706f2543Smrg */
35706f2543Smrg
36706f2543Smrg#ifdef HAVE_DIX_CONFIG_H
37706f2543Smrg#include <dix-config.h>
38706f2543Smrg#endif
39706f2543Smrg
40706f2543Smrg#ifndef _PANORAMIX_H_
41706f2543Smrg#define _PANORAMIX_H_
42706f2543Smrg
43706f2543Smrg#define _PANORAMIX_SERVER
44706f2543Smrg#include <X11/extensions/panoramiXproto.h>
45706f2543Smrg#undef _PANORAMIX_SERVER
46706f2543Smrg#include "gcstruct.h"
47706f2543Smrg
48706f2543Smrg
49706f2543Smrgtypedef struct _PanoramiXInfo {
50706f2543Smrg    XID id ;
51706f2543Smrg} PanoramiXInfo;
52706f2543Smrg
53706f2543Smrgtypedef struct {
54706f2543Smrg    PanoramiXInfo info[MAXSCREENS];
55706f2543Smrg    RESTYPE type;
56706f2543Smrg    union {
57706f2543Smrg	struct {
58706f2543Smrg	    char   visibility;
59706f2543Smrg	    char   class;
60706f2543Smrg            char   root;
61706f2543Smrg	} win;
62706f2543Smrg	struct {
63706f2543Smrg	    Bool shared;
64706f2543Smrg	} pix;
65706f2543Smrg	struct {
66706f2543Smrg	    Bool root;
67706f2543Smrg	} pict;
68706f2543Smrg	char raw_data[4];
69706f2543Smrg    } u;
70706f2543Smrg} PanoramiXRes;
71706f2543Smrg
72706f2543Smrg#define FOR_NSCREENS_FORWARD(j) for(j = 0; j < PanoramiXNumScreens; j++)
73706f2543Smrg#define FOR_NSCREENS_BACKWARD(j) for(j = PanoramiXNumScreens - 1; j >= 0; j--)
74706f2543Smrg#define FOR_NSCREENS(j) FOR_NSCREENS_FORWARD(j)
75706f2543Smrg
76706f2543Smrg#define IS_SHARED_PIXMAP(r) (((r)->type == XRT_PIXMAP) && (r)->u.pix.shared)
77706f2543Smrg
78706f2543Smrg#endif /* _PANORAMIX_H_ */
79