105b261ecSmrg/*********************************************************** 205b261ecSmrg 305b261ecSmrgCopyright 1987, 1998 The Open Group 405b261ecSmrg 505b261ecSmrgPermission to use, copy, modify, distribute, and sell this software and its 605b261ecSmrgdocumentation for any purpose is hereby granted without fee, provided that 705b261ecSmrgthe above copyright notice appear in all copies and that both that 805b261ecSmrgcopyright notice and this permission notice appear in supporting 905b261ecSmrgdocumentation. 1005b261ecSmrg 1105b261ecSmrgThe above copyright notice and this permission notice shall be included in 1205b261ecSmrgall copies or substantial portions of the Software. 1305b261ecSmrg 1405b261ecSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1505b261ecSmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1605b261ecSmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1705b261ecSmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 1805b261ecSmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1905b261ecSmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2005b261ecSmrg 2105b261ecSmrgExcept as contained in this notice, the name of The Open Group shall not be 2205b261ecSmrgused in advertising or otherwise to promote the sale, use or other dealings 2305b261ecSmrgin this Software without prior written authorization from The Open Group. 2405b261ecSmrg 2505b261ecSmrgCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 2605b261ecSmrg 2705b261ecSmrg All Rights Reserved 2805b261ecSmrg 2935c4bbdfSmrgPermission to use, copy, modify, and distribute this software and its 3035c4bbdfSmrgdocumentation for any purpose and without fee is hereby granted, 3105b261ecSmrgprovided that the above copyright notice appear in all copies and that 3235c4bbdfSmrgboth that copyright notice and this permission notice appear in 3305b261ecSmrgsupporting documentation, and that the name of Digital not be 3405b261ecSmrgused in advertising or publicity pertaining to distribution of the 3535c4bbdfSmrgsoftware without specific, written prior permission. 3605b261ecSmrg 3705b261ecSmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 3805b261ecSmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 3905b261ecSmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 4005b261ecSmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 4105b261ecSmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 4205b261ecSmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 4305b261ecSmrgSOFTWARE. 4405b261ecSmrg 4505b261ecSmrg******************************************************************/ 4605b261ecSmrg 4735c4bbdfSmrg/* 4835c4bbdfSmrg * Copyright (c) 1997-2003 by The XFree86 Project, Inc. 4935c4bbdfSmrg * 5035c4bbdfSmrg * Permission is hereby granted, free of charge, to any person obtaining a 5135c4bbdfSmrg * copy of this software and associated documentation files (the "Software"), 5235c4bbdfSmrg * to deal in the Software without restriction, including without limitation 5335c4bbdfSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 5435c4bbdfSmrg * and/or sell copies of the Software, and to permit persons to whom the 5535c4bbdfSmrg * Software is furnished to do so, subject to the following conditions: 5635c4bbdfSmrg * 5735c4bbdfSmrg * The above copyright notice and this permission notice shall be included in 5835c4bbdfSmrg * all copies or substantial portions of the Software. 5935c4bbdfSmrg * 6035c4bbdfSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 6135c4bbdfSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 6235c4bbdfSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 6335c4bbdfSmrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 6435c4bbdfSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 6535c4bbdfSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 6635c4bbdfSmrg * OTHER DEALINGS IN THE SOFTWARE. 6735c4bbdfSmrg * 6835c4bbdfSmrg * Except as contained in this notice, the name of the copyright holder(s) 6935c4bbdfSmrg * and author(s) shall not be used in advertising or otherwise to promote 7035c4bbdfSmrg * the sale, use or other dealings in this Software without prior written 7135c4bbdfSmrg * authorization from the copyright holder(s) and author(s). 7235c4bbdfSmrg */ 7335c4bbdfSmrg 7405b261ecSmrg#ifndef EXTENSION_H 7535c4bbdfSmrg#define EXTENSION_H 7635c4bbdfSmrg 7735c4bbdfSmrg#include <X11/Xfuncproto.h> 7835c4bbdfSmrg 7935c4bbdfSmrg#include "dixstruct.h" 8005b261ecSmrg 8135c4bbdfSmrgtypedef void (*InitExtension) (void); 8205b261ecSmrg 8335c4bbdfSmrgtypedef struct { 8435c4bbdfSmrg InitExtension initFunc; 8535c4bbdfSmrg const char *name; 8635c4bbdfSmrg Bool *disablePtr; 8735c4bbdfSmrg} ExtensionModule; 8805b261ecSmrg 8935c4bbdfSmrgextern _X_EXPORT unsigned short StandardMinorOpcode(ClientPtr /*client */ ); 9005b261ecSmrg 9135c4bbdfSmrgextern _X_EXPORT Bool EnableDisableExtension(const char *name, Bool enable); 9205b261ecSmrg 9335c4bbdfSmrgextern _X_EXPORT void EnableDisableExtensionError(const char *name, 9435c4bbdfSmrg Bool enable); 9505b261ecSmrg 966747b715Smrgextern _X_EXPORT void InitExtensions(int argc, char **argv); 9705b261ecSmrg 986747b715Smrgextern _X_EXPORT void CloseDownExtensions(void); 9905b261ecSmrg 10035c4bbdfSmrgextern _X_EXPORT void LoadExtensionList(const ExtensionModule ext[], 10135c4bbdfSmrg int listSize, Bool external); 10205b261ecSmrg 10335c4bbdfSmrg#endif /* EXTENSION_H */ 104