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