clientstr.h revision ce6676db
1/* 2Copyright 1987, 1998 The Open Group 3 4Permission to use, copy, modify, distribute, and sell this software and its 5documentation for any purpose is hereby granted without fee, provided that 6the above copyright notice appear in all copies and that both that 7copyright notice and this permission notice appear in supporting 8documentation. 9 10The above copyright notice and this permission notice shall be included in 11all copies or substantial portions of the Software. 12 13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 17AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 20Except as contained in this notice, the name of The Open Group shall not be 21used in advertising or otherwise to promote the sale, use or other dealings 22in this Software without prior written authorization from The Open Group. 23 * Copyright 1990, 1991 Network Computing Devices; 24 * Portions Copyright 1987 by Digital Equipment Corporation 25 * 26 * Permission to use, copy, modify, distribute, and sell this software and its 27 * documentation for any purpose is hereby granted without fee, provided that 28 * the above copyright notice appear in all copies and that both that 29 * copyright notice and this permission notice appear in supporting 30 * documentation, and that the names of Network Computing Devices, 31 * or Digital not be used in advertising or 32 * publicity pertaining to distribution of the software without specific, 33 * written prior permission. Network Computing Devices, or Digital 34 * make no representations about the 35 * suitability of this software for any purpose. It is provided "as is" 36 * without express or implied warranty. 37 * 38 * NETWORK COMPUTING DEVICES, AND DIGITAL DISCLAIM ALL WARRANTIES WITH 39 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 40 * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, OR DIGITAL BE 41 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 42 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 43 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 44 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 45 */ 46 47#ifndef _CLIENTSTR_H_ 48#define _CLIENTSTR_H_ 49 50#include <X11/fonts/FS.h> 51#include "client.h" 52#include "auth.h" 53#include "misc.h" 54 55typedef struct _Client { 56 int index; 57 pointer osPrivate; 58 int noClientException; 59 int (**requestVector) (ClientPtr); 60 pointer requestBuffer; 61 int clientGone; 62 int sequence; 63 Bool swapped; 64 long last_request_time; 65 void (*pSwapReplyFunc) (ClientPtr, int, short *); 66 AuthContextPtr auth; 67 int auth_generation; 68 AuthContextPtr default_auth; 69 char *catalogues; 70 int num_catalogues; 71 Mask eventmask; 72 fsResolution *resolutions; 73 int num_resolutions; 74 int major_version; /* client-major-protocol-version */ 75 int minor_version; 76} ClientRec; 77 78typedef struct _WorkQueue { 79 struct _WorkQueue *next; 80 Bool (*function) (ClientPtr, pointer); 81 ClientPtr client; 82 pointer closure; 83} WorkQueueRec; 84 85#ifndef CloseDownClient 86#ifdef DEBUG 87#define CloseDownClient(client) \ 88 fprintf(stderr, "CloseDownClient %s %d\n", __FILE__, __LINE__),\ 89 DoCloseDownClient(client) 90#else 91#define CloseDownClient DoCloseDownClient 92#endif 93extern void DoCloseDownClient(ClientPtr client); 94#endif 95 96#endif /* _CLIENTSTR_H_ */ 97