dga_rtnshared.h revision 919
/* Copyright 1993 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * These structures and definitions are for the DGA * shared memory retained window grabber. * Note: It is intended that grabbed retained windows are used in * conjunction with grabbbed visible windows. Therefore the * visible window must be grabbed prior to grabbing the * retained window. The client then accesses the retained * window structures indirectly through the dga_window * structure defined for the associated grabbed visible #
define RTN_MAGIC 0x52544E44 /* "RTND" = 0x52544E44 */#
define RTN_VERS 0
/* Current version number */#
define RTN_FILE "/shrtndm" /* Shared info file base name. Full */ /* name is base name + port # + '.' */ #
define RTN_MAXPATH 237 /* 237 = Allocated size (256) - the */ /* length of the filename (18) - 1 */ /* for the null character */ #
define RTN_FAILED 0
/* Value returned from rtn funcs */#
define RTN_PASSED -
1 /* Value returned from rtn funcs */#
define RTN_GRABBED 1 /* Flag that signifies that the */ /* window is shared retained */ #
define RTN_MAPPED 2 /* Flag that signifies that the */ /* shared retained window is mapped */ #
define RTN_MAPCHG 4 /* Flag that signifies that the */ /* shared info has gone from mapped */ * Shared Retained Information. This structure contains the information * necessary to allow the server and client to share access to a DGA * retained window. This information is located in the first page of * the shared memory created by the server in response to a call to * XDgaGrabRetainedWindow(). The server communicates the current state * of the shared retained raster to the client through the fields within u_int magic;
/* magic number, "RTND"=0x52544E44 */ short width;
/* raster width */ short height;
/* raster height */ int s_fd;
/* server's file descriptor */ int c_fd;
/* client's file descriptor */ u_char pad1[
155];
/* unused pad area up to 512 bytes */ #
endif /* _DGA_RTNSHARED_H */