dgast.h revision 943
943N/A/* Copyright (c) 1994, 1999, Oracle and/or its affiliates. All rights reserved.
258N/A *
258N/A * Permission is hereby granted, free of charge, to any person obtaining a
919N/A * copy of this software and associated documentation files (the "Software"),
919N/A * to deal in the Software without restriction, including without limitation
919N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A * and/or sell copies of the Software, and to permit persons to whom the
919N/A * Software is furnished to do so, subject to the following conditions:
258N/A *
919N/A * The above copyright notice and this permission notice (including the next
919N/A * paragraph) shall be included in all copies or substantial portions of the
919N/A * Software.
258N/A *
919N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A * DEALINGS IN THE SOFTWARE.
258N/A */
258N/A
258N/A
258N/A/*
258N/A *-----------------------------------------------------------------------
258N/A * SUN_DGA private extension minor op codes
258N/A *-----------------------------------------------------------------------
258N/A */
258N/A
258N/A#ifndef _SUN_DGA_H
258N/A#define _SUN_DGA_H
258N/A
258N/A#define SUN_DGA_MAJOR_VERSION 3 /* current version numbers */
258N/A#define SUN_DGA_MINOR_VERSION 2
258N/A
258N/A/* protocol requests in Protocol Version 1 - OpenWindows 2.0 FCS */
258N/A#define X_WxGrab 1
258N/A#define X_WxUnGrab 2
258N/A#define X_WxGrabColormap 3
258N/A#define X_WxUnGrabColormap 4
258N/A
258N/A/* additional protocol requests in Protocol Version 2 - OpenWindows 3.0 Beta */
258N/A#define X_WxGrabWids 5
258N/A#define X_WxGrabBuffers 6
258N/A#define X_WxUnGrabBuffers 7
258N/A#define X_WxGrabFCS 8
258N/A#define X_WxGrabZbuf 9
258N/A#define X_WxGrabStereo 10
258N/A#define X_WxGrab_New 11
258N/A#define X_WxUnGrab_New 12
258N/A
258N/A/* additional protocol requests in Protocol Version 3 - OpenWindows 3.0 FCS */
258N/A#define X_WxGrabColormapNew 13
258N/A#define X_WxUnGrabColormapNew 14
258N/A#define X_WxGrabRetained 15
258N/A#define X_WxUnGrabRetained 16
258N/A#define X_WxGetRetainedPath 17
258N/A#define X_DgaQueryVersion 18
258N/A
258N/A/* additional protocol requests in Protocol Version 3 - OpenWindows 3.0 FCS */
258N/A
258N/A#define X_WxGrabPixmap 19
258N/A#define X_WxUnGrabPixmap 20
258N/A
258N/A/* additional protocol requests in Protocol Version 3.2 */
258N/A
258N/A#define X_WxGrabDrawable 21
258N/A#define X_WxUnGrabDrawable 22
258N/A
258N/A/* additional protocol requests in Protocol Version 3.6 */
258N/A
258N/A#define X_WxGrabABuffers 23
258N/A#define X_WxUnGrabABuffers 24
258N/A
258N/A#ifdef PANORAMIX
258N/A#define X_DgaXineramaInfo 25
258N/A#endif
258N/A
258N/A/*
258N/A** Types of grabbable drawables
258N/A*/
258N/A
258N/A#define DGA_PROTO_WINDOW 0
258N/A#define DGA_PROTO_PIXMAP 1
258N/A#define DGA_PROTO_OVERLAY 2
258N/A
258N/A#define DGA_TOKEN_NULL 0
258N/A
258N/A/* Ancillary Buffers request structure */
258N/A
258N/A typedef struct {
258N/A CARD8 reqType;
258N/A BYTE pad;
258N/A CARD16 length B16;
258N/A CARD32 id B32; /* a Window, Drawable, Font, GContext, Pixmap, etc. */
258N/A CARD32 type;
258N/A CARD32 buffer_site;
258N/A } xDgaGrabABuffersReq;
258N/A#define sz_xDgaGrabABuffersReq (sizeof(xDgaGrabABuffersReq))
258N/A
258N/A/*
258N/A** OWGX request structure
258N/A*/
258N/A
258N/A typedef struct {
258N/A CARD8 reqType;
258N/A BYTE pad;
258N/A CARD16 length B16;
258N/A CARD32 id B32; /* a Window, Drawable, Font, GContext, Pixmap, etc. */
258N/A CARD32 number_objects B32;
258N/A } xOWGXReq;
258N/A#define sz_xOWGXReq 12
258N/A
258N/A
258N/A/*
258N/A** OWGX shared retained path reply structure
258N/A*/
258N/A
258N/A typedef struct {
258N/A BYTE type; /* X_Reply */
258N/A CARD8 pad;
258N/A CARD16 sequenceNumber B16;
258N/A CARD32 length B32;
258N/A CARD8 path[200];
258N/A } xOWGXRtndPathReply;
258N/A#define sz_xOWGXRtndPathReply 208
258N/A
258N/A
258N/A/*
258N/A * DgaQueryVersion request and reply structures
258N/A */
258N/A
258N/Atypedef struct {
258N/A CARD8 reqType; /* always SUN_DGA major opcode */
258N/A CARD8 dgaReqType; /* always X_DgaQueryVersion */
258N/A CARD16 length B16;
258N/A} xDgaQueryVersionReq;
258N/A#define sz_xDgaQueryVersionReq 4
258N/A
258N/Atypedef struct {
258N/A BYTE type; /* X_Reply */
258N/A CARD8 unused;
258N/A CARD16 sequenceNumber B16;
258N/A CARD32 length B32;
258N/A CARD16 majorVersion B16;
258N/A CARD16 minorVersion B16;
258N/A CARD32 pad0 B32;
258N/A CARD32 pad1 B32;
258N/A CARD32 pad2 B32;
258N/A CARD32 pad3 B32;
258N/A CARD32 pad4 B32;
258N/A} xDgaQueryVersionReply;
258N/A#define sz_xDgaQueryVersionReply 32
258N/A
258N/A
258N/A
258N/A#endif /* _SUN_DGA_H */
258N/A