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