mbufsetstr.h revision 830
830N/A/* Copyright 1994 Sun Microsystems, Inc. All rights reserved.
830N/A * Use is subject to license terms.
830N/A *
830N/A * Permission is hereby granted, free of charge, to any person obtaining a
830N/A * copy of this software and associated documentation files (the
830N/A * "Software"), to deal in the Software without restriction, including
830N/A * without limitation the rights to use, copy, modify, merge, publish,
830N/A * distribute, and/or sell copies of the Software, and to permit persons
830N/A * to whom the Software is furnished to do so, provided that the above
830N/A * copyright notice(s) and this permission notice appear in all copies of
830N/A * the Software and that both the above copyright notice(s) and this
830N/A * permission notice appear in supporting documentation.
830N/A *
830N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
830N/A * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
830N/A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
830N/A * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
830N/A * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
830N/A * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
830N/A * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
830N/A * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
830N/A * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
830N/A *
830N/A * Except as contained in this notice, the name of a copyright holder
830N/A * shall not be used in advertising or otherwise to promote the sale, use
830N/A * or other dealings in this Software without prior written authorization
830N/A * of the copyright holder.
830N/A */
830N/A
830N/A#pragma ident "@(#)mbufsetstr.h 35.2 09/11/09 SMI"
830N/A
830N/A#ifndef _DGA_MBUFSETSTR_H
830N/A#define _DGA_MBUFSETSTR_H
830N/A
830N/A/*
830N/A** Client structure for multibuffer set.
830N/A*/
830N/A
830N/A/*
830N/A** A "multibuffer set" (mbufset) stores client-side info about the multibuffers
830N/A** attached to a multibuffered window.
830N/A*/
830N/A
830N/Atypedef struct dga_mbufset {
830N/A unsigned int refcnt;
830N/A short numBufs;
830N/A _Dga_pixmap pNbPixmaps[DGA_MAX_GRABBABLE_BUFS];
830N/A
830N/A /* shared info for nonviewable mbufs. Indices that
830N/A correspond to viewable mbufs are always NULL */
830N/A SHARED_PIXMAP_INFO *pNbShinfo[DGA_MAX_GRABBABLE_BUFS];
830N/A
830N/A u_int mbufseq[DGA_MAX_GRABBABLE_BUFS];
830N/A u_int clipseq[DGA_MAX_GRABBABLE_BUFS];
830N/A u_int curseq[DGA_MAX_GRABBABLE_BUFS];
830N/A
830N/A /* last recorded cache count for nonviewable mbufs. Indices that
830N/A correspond to viewable mbufs are always 0 */
830N/A u_int cacheSeqs[DGA_MAX_GRABBABLE_BUFS];
830N/A
830N/A /* last recorded cache count for nonviewable mbufs. Indices that
830N/A correspond to viewable mbufs are always 0 (viewable mbufs
830N/A don't have devce info) */
830N/A u_int devInfoSeqs[DGA_MAX_GRABBABLE_BUFS];
830N/A
830N/A /* Has the buffer been locked previously? */
830N/A char prevLocked[DGA_MAX_GRABBABLE_BUFS];
830N/A
830N/A} DgaMbufSet;
830N/A
830N/A
830N/A#endif /* _DGA_MBUFSETSTR_H */
830N/A