pix_grab.h revision 943
943N/A/* Copyright (c) 1993, Oracle and/or its affiliates. All rights reserved.
830N/A *
830N/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:
830N/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.
830N/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.
830N/A */
830N/A
830N/A
830N/A#ifndef _PIX_GRAB_H
830N/A#define _PIX_GRAB_H
830N/A
830N/A#ifndef PMODIF
830N/A#define PMODIF 1 /* server has set a new cache */
830N/A#define PIX_FILE "/shpxm" /* Shared info file base name*/
830N/A /* name is base name + port # + '.' */
830N/A /* + pixmap id */
830N/A#define PIX_FAILED 0 /* Fail Value returned from pix funcs */
830N/A#define PIX_PASSED -1 /* Pass Value returned from pix funcs */
830N/A
830N/A/* client structure's pix_flag values */
830N/A#define PIX_NOTICE_CLIPCHG 1
830N/A
830N/A/*
830N/A * Shared Pixmap Information. This structure contains the information
830N/A * necessary to allow the server and client to share access to a DGA
830N/A * pixmap . This information is located in the first page of
830N/A * the shared memory created by the server in response to a call to
830N/A * XDgaGrabPixmap(). The server communicates the current state
830N/A * of the shared pixmap to the client through the fields within
830N/A * this structure.
830N/A */
830N/A
830N/Atypedef struct shpx_client_entry {
830N/A u_int cid; /* client id */
830N/A SHPX_DIRECTORY *shpx_directory; /* server's per client shpx dir */
830N/A u_int fd; /* server's per client file descrptr*/
830N/A u_int size; /* client file size */
830N/A u_int npix; /* number of pixmaps using this entry */
830N/A} SHPX_CLIENT_ENTRY;
830N/A
830N/A
830N/A/*
830N/A * Internal DGA Pixmap Macros
830N/A */
830N/A
830N/A#define PIX_INFOP(clientp) ((SHARED_PIXMAP_INFO *) ((clientp)->p_infop))
830N/A
830N/A/* definitions of lock marcos for pixmaps - move this to dga.h later */
830N/A
830N/A
830N/A/* DGA_LOCK_SRC_AND_DST will go here after they are debugged */
830N/A#endif /* PMODIF */
830N/A#endif /* _PIX_GRAB_H */