1/*
2 * all the dispatch, error, event and reply vectors
3 */
4/*
5
6Copyright 1990, 1991, 1998  The Open Group
7
8Permission to use, copy, modify, distribute, and sell this software and its
9documentation for any purpose is hereby granted without fee, provided that
10the above copyright notice appear in all copies and that both that
11copyright notice and this permission notice appear in supporting
12documentation.
13
14The above copyright notice and this permission notice shall be included in
15all copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
20OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24Except as contained in this notice, the name of The Open Group shall not be
25used in advertising or otherwise to promote the sale, use or other dealings
26in this Software without prior written authorization from The Open Group.
27
28 * Copyright 1990, 1991 Network Computing Devices;
29 * Portions Copyright 1987 by Digital Equipment Corporation
30 *
31 * Permission to use, copy, modify, distribute, and sell this software and
32 * its documentation for any purpose is hereby granted without fee, provided
33 * that the above copyright notice appear in all copies and that both that
34 * copyright notice and this permission notice appear in supporting
35 * documentation, and that the names of Network Computing Devices, or Digital
36 * not be used in advertising or publicity pertaining to distribution
37 * of the software without specific, written prior permission.
38 *
39 * NETWORK COMPUTING DEVICES, AND DIGITAL DISCLAIM ALL WARRANTIES WITH
40 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
41 * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES,
42 * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
43 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
44 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
45 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
46 * THIS SOFTWARE.
47 */
48
49#include "config.h"
50
51#include <dispatch.h>
52#include <swaprep.h>
53#include <swapreq.h>
54#include <fsevents.h>
55
56#include "globals.h"
57#include "client.h"
58#include "extentst.h"
59#include "difs.h"
60
61InitialFunc InitialVector[3] =
62{
63    NULL,
64    ProcInitialConnection,
65    ProcEstablishConnection
66};
67
68ProcFunc ProcVector[NUM_PROC_VECTORS] =
69{
70    ProcNoop,			/* 0 */
71    ProcListExtensions,
72    ProcQueryExtension,
73    ProcListCatalogues,
74    ProcSetCatalogues,
75    ProcGetCatalogues,		/* 5 */
76    ProcSetEventMask,
77    ProcGetEventMask,
78    ProcCreateAC,
79    ProcFreeAC,
80    ProcSetAuthorization,	/* 10 */
81    ProcSetResolution,
82    ProcGetResolution,
83    ProcListFonts,
84    ProcListFontsWithXInfo,
85    ProcOpenBitmapFont,		/* 15 */
86    ProcQueryXInfo,
87    ProcQueryXExtents,
88    ProcQueryXExtents,
89    ProcQueryXBitmaps,
90    ProcQueryXBitmaps,		/* 20 */
91    ProcCloseFont,
92    NULL,
93    NULL,
94    NULL
95};
96
97SwappedProcFunc SwappedProcVector[NUM_PROC_VECTORS] =
98{
99    SProcSimpleRequest,		/* 0 */
100    SProcSimpleRequest,
101    SProcQueryExtension,
102    SProcListCatalogues,
103    SProcSimpleRequest,		/* SetCatalogues */
104    SProcSimpleRequest,		/* 5 */
105    SProcResourceRequest,	/* SetEventMask */
106    SProcSimpleRequest,
107    SProcCreateAC,
108    SProcResourceRequest,
109    SProcResourceRequest,	/* 10 */
110    SProcSetResolution,
111    SProcSimpleRequest,
112    SProcListFonts,
113    SProcListFontsWithXInfo,
114    SProcOpenBitmapFont,	/* 15 */
115    SProcResourceRequest,
116    SProcQueryXExtents,
117    SProcQueryXExtents,
118    SProcQueryXBitmaps,
119    SProcQueryXBitmaps,		/* 20 */
120    SProcResourceRequest,
121    NULL,
122    NULL,
123    NULL
124};
125
126ReplySwapFunc ReplySwapVector[NUM_PROC_VECTORS] =
127{
128    ReplySwapNotImplemented,	/* NoOp */
129    SListExtensionsReply,
130    SQueryExtensionReply,	/* SQueryExtensionReply */
131    SListCataloguesReply,
132    ReplySwapNotImplemented,	/* SetCatalogues */
133    SGenericReply,		/* GetCatalogues */
134    ReplySwapNotImplemented,	/* SetEventMask */
135    SGetEventMaskReply,
136    SCreateACReply,
137    ReplySwapNotImplemented,	/* FreeAC */
138    ReplySwapNotImplemented,	/* SetAuthorization - 10 */
139    ReplySwapNotImplemented,	/* SetResolution */
140    SGetResolutionReply,
141    SListFontsReply,
142    SListFontsWithXInfoReply,
143    SOpenBitmapFontReply,	/* 15 */
144    SQueryXInfoReply,
145    SQueryXExtentsReply,
146    SQueryXExtentsReply,
147    SQueryXBitmapsReply,
148    SQueryXBitmapsReply,	/* 20 */
149    ReplySwapNotImplemented,	/* Close */
150    ReplySwapNotImplemented,
151    ReplySwapNotImplemented
152};
153