1 /* Copyright (c) 1993, Oracle and/or its affiliates. All rights reserved.
3 * Permission is hereby granted, free of charge, to any person obtaining a
4 * copy of this software and associated documentation files (the "Software"),
5 * to deal in the Software without restriction, including without limitation
6 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 * and/or sell copies of the Software, and to permit persons to whom the
8 * Software is furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice (including the next
11 * paragraph) shall be included in all copies or substantial portions of the
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
28 #define PMODIF 1 /* server has set a new cache */
29 #define PIX_FILE "/shpxm" /* Shared info file base name*/
30 /* name is base name + port # + '.' */
32 #define PIX_FAILED 0 /* Fail Value returned from pix funcs */
33 #define PIX_PASSED -1 /* Pass Value returned from pix funcs */
35 /* client structure's pix_flag values */
36 #define PIX_NOTICE_CLIPCHG 1
39 * Shared Pixmap Information. This structure contains the information
40 * necessary to allow the server and client to share access to a DGA
41 * pixmap . This information is located in the first page of
42 * the shared memory created by the server in response to a call to
43 * XDgaGrabPixmap(). The server communicates the current state
44 * of the shared pixmap to the client through the fields within
48 typedef struct shpx_client_entry
{
49 u_int cid
; /* client id */
50 SHPX_DIRECTORY
*shpx_directory
; /* server's per client shpx dir */
51 u_int fd
; /* server's per client file descrptr*/
52 u_int size
; /* client file size */
53 u_int npix
; /* number of pixmaps using this entry */
58 * Internal DGA Pixmap Macros
61 #define PIX_INFOP(clientp) ((SHARED_PIXMAP_INFO *) ((clientp)->p_infop))
63 /* definitions of lock marcos for pixmaps - move this to dga.h later */
66 /* DGA_LOCK_SRC_AND_DST will go here after they are debugged */
68 #endif /* _PIX_GRAB_H */