screenint.h revision b8e299dddd091ae24e0c08c45d91b8f937bd14d2
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync/* $Xorg: screenint.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync/***********************************************************
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncCopyright 1987, 1998 The Open Group
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncthe above copyright notice appear in all copies and that both that
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsynccopyright notice and this permission notice appear in supporting
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncdocumentation.
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncThe above copyright notice and this permission notice shall be included in
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncall copies or substantial portions of the Software.
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncExcept as contained in this notice, the name of The Open Group shall not be
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncused in advertising or otherwise to promote the sale, use or other dealings
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncin this Software without prior written authorization from The Open Group.
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync All Rights Reserved
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncPermission to use, copy, modify, and distribute this software and its
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncdocumentation for any purpose and without fee is hereby granted,
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncprovided that the above copyright notice appear in all copies and that
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncboth that copyright notice and this permission notice appear in
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncsupporting documentation, and that the name of Digital not be
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncused in advertising or publicity pertaining to distribution of the
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncsoftware without specific, written prior permission.
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsyncSOFTWARE.
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync******************************************************************/
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync/* $XFree86: xc/programs/Xserver/include/screenint.h,v 1.5 2001/12/14 19:59:56 dawes Exp $ */
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync#ifndef SCREENINT_H
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync#define SCREENINT_H
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
60567e47890b3ba831616af1c50356c9ed432c38vboxsync#include "misc.h"
68805e5ad6a674c39dfa0172a85949fff3aaea14vboxsync
typedef struct _PixmapFormat *PixmapFormatPtr;
typedef struct _Visual *VisualPtr;
typedef struct _Depth *DepthPtr;
typedef struct _Screen *ScreenPtr;
extern void ResetScreenPrivates(void);
extern int AllocateScreenPrivateIndex(void);
extern void ResetWindowPrivates(void);
extern int AllocateWindowPrivateIndex(void);
extern Bool AllocateWindowPrivate(
ScreenPtr /* pScreen */,
int /* index */,
unsigned /* amount */);
extern void ResetGCPrivates(void);
extern int AllocateGCPrivateIndex(void);
extern Bool AllocateGCPrivate(
ScreenPtr /* pScreen */,
int /* index */,
unsigned /* amount */);
extern int AddScreen(
Bool (* /*pfnInit*/)(
int /*index*/,
ScreenPtr /*pScreen*/,
int /*argc*/,
char ** /*argv*/),
int /*argc*/,
char** /*argv*/);
#ifdef PIXPRIV
extern void ResetPixmapPrivates(void);
extern int AllocatePixmapPrivateIndex(void);
extern Bool AllocatePixmapPrivate(
ScreenPtr /* pScreen */,
int /* index */,
unsigned /* amount */);
#endif /* PIXPRIV */
extern void ResetColormapPrivates(void);
typedef struct _ColormapRec *ColormapPtr;
typedef int (*InitCmapPrivFunc)(ColormapPtr, int);
extern int AllocateColormapPrivateIndex(
InitCmapPrivFunc /* initPrivFunc */);
#endif /* SCREENINT_H */