1 /* 2 * all the dispatch, error, event and reply vectors 3 */ 4 /* 5 6 Copyright 1990, 1991, 1998 The Open Group 7 8 Permission to use, copy, modify, distribute, and sell this software and its 9 documentation for any purpose is hereby granted without fee, provided that 10 the above copyright notice appear in all copies and that both that 11 copyright notice and this permission notice appear in supporting 12 documentation. 13 14 The above copyright notice and this permission notice shall be included in 15 all copies or substantial portions of the Software. 16 17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 24 Except as contained in this notice, the name of The Open Group shall not be 25 used in advertising or otherwise to promote the sale, use or other dealings 26 in 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 61 InitialFunc InitialVector[3] = 62 { 63 NULL, 64 ProcInitialConnection, 65 ProcEstablishConnection 66 }; 67 68 ProcFunc 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 97 SwappedProcFunc 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 126 EventSwapFunc EventSwapVector[NUM_EVENT_VECTORS] = 127 { 128 SErrorEvent, 129 (EventSwapFunc)NotImplemented, 130 NULL, 131 NULL, 132 NULL, 133 NULL, 134 NULL, 135 NULL 136 }; 137 138 ReplySwapFunc ReplySwapVector[NUM_PROC_VECTORS] = 139 { 140 (ReplySwapFunc)NotImplemented, /* NoOp */ 141 SListExtensionsReply, 142 SQueryExtensionReply, /* SQueryExtensionReply */ 143 SListCataloguesReply, 144 (ReplySwapFunc)NotImplemented, /* SetCatalogues */ 145 SGenericReply, /* GetCatalogues */ 146 (ReplySwapFunc)NotImplemented, /* SetEventMask */ 147 SGetEventMaskReply, 148 SCreateACReply, 149 (ReplySwapFunc)NotImplemented, /* FreeAC */ 150 (ReplySwapFunc)NotImplemented, /* SetAuthorization - 10 */ 151 (ReplySwapFunc)NotImplemented, /* SetResolution */ 152 SGetResolutionReply, 153 SListFontsReply, 154 SListFontsWithXInfoReply, 155 SOpenBitmapFontReply, /* 15 */ 156 SQueryXInfoReply, 157 SQueryXExtentsReply, 158 SQueryXExtentsReply, 159 SQueryXBitmapsReply, 160 SQueryXBitmapsReply, /* 20 */ 161 (ReplySwapFunc)NotImplemented, /* Close */ 162 (ReplySwapFunc)NotImplemented, 163 (ReplySwapFunc)NotImplemented 164 }; 165