dga_rtnshared.h revision 943
*
* 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,
* 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
* Software.
*
* 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.
*/
#ifndef _DGA_RTNSHARED_H
#define _DGA_RTNSHARED_H
/*
* dga_rtnshared.h - Sun Direct Graphics Access shared page include file.
*/
/*
* 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
* window.
*/
#define RTN_VERS 0 /* Current version number */
/* name is base name + port # + '.' */
/* + window id */
/* length of the filename (18) - 1 */
/* for the null character */
#define RTN_FAILED 0 /* Value returned from rtn funcs */
/* upon failure */
/* upon success */
/* window is shared retained */
/* shared retained window is mapped */
/* shared info has gone from mapped */
/* to unmapped. */
/*
* 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
* this structure.
*/
typedef struct shared_retained_info
{
short width; /* raster width */
short height; /* raster height */
int s_fd; /* server's file descriptor */
int c_fd; /* client's file descriptor */
#endif /* _DGA_RTNSHARED_H */