1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
/* $Xorg: fsio.h,v 1.3 2000/08/17 19:46:36 cpqbld Exp $ */
/*
* Copyright 1990 Network Computing Devices
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Network Computing Devices not be
* used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Network Computing
* Devices makes no representations about the suitability of this software
* for any purpose. It is provided "as is" without express or implied
* warranty.
*
* NETWORK COMPUTING DEVICES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
* IN NO EVENT SHALL NETWORK COMPUTING DEVICES BE LIABLE FOR ANY SPECIAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
* OR PERFORMANCE OF THIS SOFTWARE.
*
* Author: Dave Lemke, Network Computing Devices, Inc
*/
#ifndef _FSIO_H_
#define _FSIO_H_
#define REQUEST_LOG_SIZE 100
typedef struct _fs_fpe_alternate {
char *name;
Bool subset;
} FSFpeAltRec, *FSFpeAltPtr;
/* Per client access contexts */
typedef struct _fs_client_data {
pointer client;
struct _fs_client_data *next;
XID acid;
int auth_generation;
} FSClientRec, *FSClientPtr;
#define FS_RECONNECT_WAIT 5
#define FS_MAX_RECONNECT_WAIT 80
/* FS specific font FontPathElement data */
typedef struct _fs_fpe_data {
int fs_fd;
int current_seq;
char *servername;
char *requestedname; /* client's name for this connection */
int generation;
int numAlts;
int fsMajorVersion; /* font server major version number */
FSFpeAltPtr alts;
FSClientPtr clients;
XID curacid;
#ifdef DEBUG
int reqindex;
int reqbuffer[REQUEST_LOG_SIZE];
#endif
int attemptReconnect;
/* XXX massive crock to get around stupid #include interferences */
pointer blocked_requests;
/* Data for reconnect - put it here to avoid allocate failure nightmare */
long time_to_try;
long reconnect_delay;
struct _fs_fpe_data *next_reconnect;
struct _XtransConnInfo *trans_conn; /* transport connection object */
} FSFpeRec, *FSFpePtr;
FSFpePtr _fs_open_server();
void _fs_bit_clear();
#endif /* _FSIO_H_ */
|