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