7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste/***********************************************************
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteCopyright 1987, 1998 The Open Group
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste
7cbae22b7560eefcf086863923459880aa87f014Jaco JoostePermission to use, copy, modify, distribute, and sell this software and its
7cbae22b7560eefcf086863923459880aa87f014Jaco Joostedocumentation for any purpose is hereby granted without fee, provided that
7cbae22b7560eefcf086863923459880aa87f014Jaco Joostethe above copyright notice appear in all copies and that both that
7cbae22b7560eefcf086863923459880aa87f014Jaco Joostecopyright notice and this permission notice appear in supporting
7cbae22b7560eefcf086863923459880aa87f014Jaco Joostedocumentation.
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteThe above copyright notice and this permission notice shall be included in
7cbae22b7560eefcf086863923459880aa87f014Jaco Joosteall copies or substantial portions of the Software.
c299abfd457a72f3b93d443fe40ad36169e1c0a8Craig McDonnell
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteExcept as contained in this notice, the name of The Open Group shall not be
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco Joosteused in advertising or otherwise to promote the sale, use or other dealings
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco Joostein this Software without prior written authorization from The Open Group.
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco Jooste
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco Jooste
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco JoosteCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco Jooste
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco Jooste All Rights Reserved
f1f35895dc6dc528d590c6077b0bbae248bc0fd8Jaco Jooste
7cbae22b7560eefcf086863923459880aa87f014Jaco JoostePermission to use, copy, modify, and distribute this software and its
7cbae22b7560eefcf086863923459880aa87f014Jaco Joostedocumentation for any purpose and without fee is hereby granted,
7cbae22b7560eefcf086863923459880aa87f014Jaco Joosteprovided that the above copyright notice appear in all copies and that
7cbae22b7560eefcf086863923459880aa87f014Jaco Joosteboth that copyright notice and this permission notice appear in
7cbae22b7560eefcf086863923459880aa87f014Jaco Joostesupporting documentation, and that the name of Digital not be
7cbae22b7560eefcf086863923459880aa87f014Jaco Joosteused in advertising or publicity pertaining to distribution of the
7cbae22b7560eefcf086863923459880aa87f014Jaco Joostesoftware without specific, written prior permission.
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco JoosteALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco JoosteDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
95ac3084c619fd042f83410e5436ec3f1c3da190Brian BaileyANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
155c05bbac47cd2c35bc51c930935fddcbcfd604James DarleyWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
c1294b91b94412bc057d660950ed0d3b3091bd38Jaco JoosteARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteSOFTWARE.
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste******************************************************************/
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste#ifndef EXTENSION_H
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste#define EXTENSION_H
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste_XFUNCPROTOBEGIN
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern unsigned short StandardMinorOpcode(ClientPtr /*client*/);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern unsigned short MinorOpcodeOfRequest(ClientPtr /*client*/);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern Bool EnableDisableExtension(char *name, Bool enable);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern void EnableDisableExtensionError(char *name, Bool enable);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern void ResetExtensionPrivates(void);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern int AllocateExtensionPrivateIndex(void);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern Bool AllocateExtensionPrivate(
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste int /*index*/,
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste unsigned /*amount*/);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern void InitExtensions(int argc, char **argv);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern void InitVisualWrap(void);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteextern void CloseDownExtensions(void);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste_XFUNCPROTOEND
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#endif /* EXTENSION_H */
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste