1bbe1b32bSmrg/*
2bbe1b32bSmrg * font server extensions
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	<X11/fonts/FSproto.h>
52bbe1b32bSmrg#include	"misc.h"
53bbe1b32bSmrg#include	"clientstr.h"
54bbe1b32bSmrg#include	"extentst.h"
55bbe1b32bSmrg#include	"difs.h"
56bbe1b32bSmrg#include	"dispatch.h"
57bbe1b32bSmrg
588f34cbf9Ssnj/*
598f34cbf9Ssnj * Provides the protocol handlers for the Query & List Extensions
608f34cbf9Ssnj * requests, which are effectively no-ops, as no extensions are
618f34cbf9Ssnj * implemented, and the extension framework has been removed.
628f34cbf9Ssnj * (See the git history in the unlikely event you need to create one.)
638f34cbf9Ssnj */
64bbe1b32bSmrg
65bbe1b32bSmrgint
66bbe1b32bSmrgProcQueryExtension(ClientPtr client)
67bbe1b32bSmrg{
6834f90d55Smrg    fsQueryExtensionReply reply = {
6934f90d55Smrg        .type = FS_Reply,
7034f90d55Smrg        .sequenceNumber = client->sequence,
7134f90d55Smrg        .length = SIZEOF(fsQueryExtensionReply) >> 2,
728f34cbf9Ssnj        .present = fsFalse,
7334f90d55Smrg        .major_opcode = 0
7434f90d55Smrg    };
75bbe1b32bSmrg
76bbe1b32bSmrg    REQUEST(fsQueryExtensionReq);
77bbe1b32bSmrg
78bbe1b32bSmrg    REQUEST_AT_LEAST_SIZE(fsQueryExtensionReq);
79bbe1b32bSmrg
808f34cbf9Ssnj    /* No defined extensions to query for, so always just return False */
81bbe1b32bSmrg    WriteReplyToClient(client, SIZEOF(fsQueryExtensionReply), &reply);
82bbe1b32bSmrg    return client->noClientException;
83bbe1b32bSmrg}
84bbe1b32bSmrg
85bbe1b32bSmrgint
86bbe1b32bSmrgProcListExtensions(ClientPtr client)
87bbe1b32bSmrg{
8834f90d55Smrg    fsListExtensionsReply reply = {
8934f90d55Smrg        .type = FS_Reply,
908f34cbf9Ssnj        .nExtensions = 0,
9134f90d55Smrg        .sequenceNumber = client->sequence,
9234f90d55Smrg        .length = SIZEOF(fsListExtensionsReply) >> 2
9334f90d55Smrg    };
94bbe1b32bSmrg
95bbe1b32bSmrg    REQUEST(fsListExtensionsReq);
96bbe1b32bSmrg    REQUEST_SIZE_MATCH(fsListExtensionsReq);
97bbe1b32bSmrg
988f34cbf9Ssnj    /* No defined extensions, so always just return empty list */
99bbe1b32bSmrg    WriteReplyToClient(client, SIZEOF(fsListExtensionsReply), &reply);
100bbe1b32bSmrg    return client->noClientException;
101bbe1b32bSmrg}
102