f78b12e570284aa8291f4ca1add24937fd107403vboxsync/******************************************************************************
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Copyright (c) 1994, 1995 Hewlett-Packard Company
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Permission is hereby granted, free of charge, to any person obtaining
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * a copy of this software and associated documentation files (the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * "Software"), to deal in the Software without restriction, including
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * without limitation the rights to use, copy, modify, merge, publish,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * distribute, sublicense, and/or sell copies of the Software, and to
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * permit persons to whom the Software is furnished to do so, subject to
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * the following conditions:
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * The above copyright notice and this permission notice shall be included
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * in all copies or substantial portions of the Software.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Except as contained in this notice, the name of the Hewlett-Packard
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Company shall not be used in advertising or otherwise to promote the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * sale, use or other dealings in this Software without prior written
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * authorization from the Hewlett-Packard Company.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Header file for users of machine-independent DBE code
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *****************************************************************************/
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifdef HAVE_DIX_CONFIG_H
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <dix-config.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef MIDBE_STRUCT_H
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define MIDBE_STRUCT_H
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync/* DEFINES */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define MI_DBE_WINDOW_PRIV_PRIV(pDbeWindowPriv) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync (!(pDbeWindowPriv) ? NULL : (MiDbeWindowPrivPrivPtr) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync dixLookupPrivate(&(pDbeWindowPriv)->devPrivates, miDbeWindowPrivPrivKey))
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define MI_DBE_WINDOW_PRIV_PRIV_FROM_WINDOW(pWin)\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync MI_DBE_WINDOW_PRIV_PRIV(DBE_WINDOW_PRIV(pWin))
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync/* TYPEDEFS */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef struct _MiDbeWindowPrivPrivRec
f78b12e570284aa8291f4ca1add24937fd107403vboxsync{
f78b12e570284aa8291f4ca1add24937fd107403vboxsync /* Place machine-specific fields in here.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Since this is mi code, we do not really have machine-specific fields.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync /* Pointer to a drawable that contains the contents of the back buffer.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync PixmapPtr pBackBuffer;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync /* Pointer to a drawable that contains the contents of the front buffer.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * This pointer is only used for the XdbeUntouched swap action. For that
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * swap action, we need to copy the front buffer (window) contents into
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * this drawable, copy the contents of current back buffer drawable (the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * back buffer) into the window, swap the front and back drawable pointers,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * and then swap the drawable/resource associations in the resource
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * database.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync PixmapPtr pFrontBuffer;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync /* Pointer back to our window private with which we are associated. */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync DbeWindowPrivPtr pDbeWindowPriv;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync} MiDbeWindowPrivPrivRec, *MiDbeWindowPrivPrivPtr;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif /* MIDBE_STRUCT_H */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync