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