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