Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver
Conflicts: hw/xfree86/loader/xf86sym.c
This commit is contained in:
commit
9d0a15dca5
18
.gitignore
vendored
18
.gitignore
vendored
|
@ -116,6 +116,24 @@ hw/dmx/examples/xdmx
|
||||||
hw/dmx/examples/xinput
|
hw/dmx/examples/xinput
|
||||||
hw/dmx/examples/xled
|
hw/dmx/examples/xled
|
||||||
hw/dmx/examples/xtest
|
hw/dmx/examples/xtest
|
||||||
|
hw/kdrive/ati/Xati
|
||||||
|
hw/kdrive/chips/Xchips
|
||||||
|
hw/kdrive/ephyr/Xephyr
|
||||||
|
hw/kdrive/epson/Xepson
|
||||||
|
hw/kdrive/fake/Xfake
|
||||||
|
hw/kdrive/fbdev/Xfbdev
|
||||||
|
hw/kdrive/i810/Xi810
|
||||||
|
hw/kdrive/mach64/Xmach64
|
||||||
|
hw/kdrive/mga/Xmga
|
||||||
|
hw/kdrive/neomagic/Xneomagic
|
||||||
|
hw/kdrive/nvidia/Xnvidia
|
||||||
|
hw/kdrive/pm2/Xpm2
|
||||||
|
hw/kdrive/r128/Xr128
|
||||||
|
hw/kdrive/sdl/Xsdl
|
||||||
|
hw/kdrive/sis300/Xsis
|
||||||
|
hw/kdrive/smi/Xsmi
|
||||||
|
hw/kdrive/vesa/Xvesa
|
||||||
|
hw/kdrive/via/Xvia
|
||||||
hw/vfb/Xvfb
|
hw/vfb/Xvfb
|
||||||
hw/vfb/Xvfb.1x
|
hw/vfb/Xvfb.1x
|
||||||
hw/vfb/Xvfb.man
|
hw/vfb/Xvfb.man
|
||||||
|
|
|
@ -43,7 +43,6 @@ from The Open Group.
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#define _XAG_SERVER_
|
#define _XAG_SERVER_
|
||||||
#include <X11/extensions/Xagstr.h>
|
#include <X11/extensions/Xagstr.h>
|
||||||
#include <X11/extensions/Xagsrv.h>
|
|
||||||
#include "securitysrv.h"
|
#include "securitysrv.h"
|
||||||
#include <X11/Xfuncproto.h>
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,87 @@
|
||||||
/* $XFree86$ */
|
/*
|
||||||
|
Copyright 1996, 1998 The Open Group
|
||||||
|
|
||||||
void XagClientStateChange(
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
the above copyright notice appear in all copies and that both that
|
||||||
|
copyright notice and this permission notice appear in supporting
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of The Open Group shall
|
||||||
|
not be used in advertising or otherwise to promote the sale, use or
|
||||||
|
other dealings in this Software without prior written authorization
|
||||||
|
from The Open Group.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _APPGROUP_SRV_H_
|
||||||
|
#define _APPGROUP_SRV_H_
|
||||||
|
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
|
_XFUNCPROTOBEGIN
|
||||||
|
|
||||||
|
extern void XagConnectionInfo(
|
||||||
|
ClientPtr /* client */,
|
||||||
|
xConnSetupPrefix** /* conn_prefix */,
|
||||||
|
char** /* conn_info */,
|
||||||
|
int* /* num_screens */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern VisualID XagRootVisual(
|
||||||
|
ClientPtr /* client */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern Colormap XagDefaultColormap(
|
||||||
|
ClientPtr /* client */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern ClientPtr XagLeader(
|
||||||
|
ClientPtr /* client */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern void XagCallClientStateChange(
|
||||||
|
ClientPtr /* client */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern Bool XagIsControlledRoot (
|
||||||
|
ClientPtr /* client */,
|
||||||
|
WindowPtr /* pParent */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern XID XagId (
|
||||||
|
ClientPtr /* client */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern void XagGetDeltaInfo (
|
||||||
|
ClientPtr /* client */,
|
||||||
|
CARD32* /* buf */
|
||||||
|
);
|
||||||
|
|
||||||
|
extern void XagClientStateChange(
|
||||||
CallbackListPtr* pcbl,
|
CallbackListPtr* pcbl,
|
||||||
pointer nulldata,
|
pointer nulldata,
|
||||||
pointer calldata);
|
pointer calldata);
|
||||||
int ProcXagCreate (
|
|
||||||
|
extern int ProcXagCreate (
|
||||||
register ClientPtr client);
|
register ClientPtr client);
|
||||||
int ProcXagDestroy(
|
|
||||||
|
extern int ProcXagDestroy(
|
||||||
register ClientPtr client);
|
register ClientPtr client);
|
||||||
|
|
||||||
|
_XFUNCPROTOEND
|
||||||
|
|
||||||
|
#endif /* _APPGROUP_SRV_H_ */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#ifdef XAPPGROUP
|
#ifdef XAPPGROUP
|
||||||
#include <X11/extensions/Xagsrv.h>
|
#include "appgroup.h"
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h> /* for file reading operations */
|
#include <stdio.h> /* for file reading operations */
|
||||||
#include <X11/Xatom.h> /* for XA_STRING */
|
#include <X11/Xatom.h> /* for XA_STRING */
|
||||||
|
|
|
@ -843,7 +843,7 @@ PKG_CHECK_MODULES([XSERVERCFLAGS], [$REQUIRED_MODULES $REQUIRED_LIBS])
|
||||||
PKG_CHECK_MODULES([XSERVERLIBS], [$REQUIRED_LIBS])
|
PKG_CHECK_MODULES([XSERVERLIBS], [$REQUIRED_LIBS])
|
||||||
|
|
||||||
XSERVER_CFLAGS="${XSERVERCFLAGS_CFLAGS}"
|
XSERVER_CFLAGS="${XSERVERCFLAGS_CFLAGS}"
|
||||||
XSERVER_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} -lm -lz"
|
XSERVER_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} -lm"
|
||||||
AC_SUBST([XSERVER_LIBS])
|
AC_SUBST([XSERVER_LIBS])
|
||||||
AC_SUBST([SYS_LIBS])
|
AC_SUBST([SYS_LIBS])
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ int ProcInitialConnection();
|
||||||
#include "securitysrv.h"
|
#include "securitysrv.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef XAPPGROUP
|
#ifdef XAPPGROUP
|
||||||
#include <X11/extensions/Xagsrv.h>
|
#include "appgroup.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef XKB
|
#ifdef XKB
|
||||||
#ifndef XKB_IN_SERVER
|
#ifndef XKB_IN_SERVER
|
||||||
|
|
|
@ -127,7 +127,7 @@ Equipment Corporation.
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#ifdef XAPPGROUP
|
#ifdef XAPPGROUP
|
||||||
#include <X11/extensions/Xagsrv.h>
|
#include "appgroup.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
#include "securitysrv.h"
|
#include "securitysrv.h"
|
||||||
|
|
|
@ -36,12 +36,12 @@ DISTCLEANFILES = osandcommon.c xorg.c
|
||||||
XORG_LIBS = \
|
XORG_LIBS = \
|
||||||
@XORG_CORE_LIBS@ \
|
@XORG_CORE_LIBS@ \
|
||||||
common/libinit.a \
|
common/libinit.a \
|
||||||
|
loader/libloader.a \
|
||||||
libosandcommon.la \
|
libosandcommon.la \
|
||||||
rac/librac.a \
|
rac/librac.a \
|
||||||
parser/libxf86config.a \
|
parser/libxf86config.a \
|
||||||
dummylib/libdummy.a \
|
dummylib/libdummy.a \
|
||||||
dixmods/libdixmods.la \
|
dixmods/libdixmods.la \
|
||||||
loader/libloader.a \
|
|
||||||
@XORG_LIBS@
|
@XORG_LIBS@
|
||||||
|
|
||||||
Xorg_DEPENDENCIES = \
|
Xorg_DEPENDENCIES = \
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
noinst_LIBRARIES = libloader.a
|
noinst_LIBRARIES = libloader.a
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS) -I$(srcdir)/../parser
|
INCLUDES = $(XORG_INCS) -I$(srcdir)/../parser -I$(srcdir)/../dixmods/extmod \
|
||||||
|
-I$(srcdir)/../vbe -I$(top_srcdir)/miext/cw -I$(srcdir)/../int10 \
|
||||||
|
-I$(srcdir)/../ddc -I$(srcdir)/../i2c
|
||||||
|
|
||||||
#AM_LDFLAGS = -r
|
#AM_LDFLAGS = -r
|
||||||
AM_CFLAGS = -DIN_LOADER $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = -DIN_LOADER $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
||||||
|
@ -23,4 +25,9 @@ libloader_a_SOURCES = \
|
||||||
loadfont.c \
|
loadfont.c \
|
||||||
dlloader.c \
|
dlloader.c \
|
||||||
os.c \
|
os.c \
|
||||||
|
dixsym.c \
|
||||||
|
extsym.c \
|
||||||
|
fontsym.c \
|
||||||
|
misym.c \
|
||||||
|
xf86sym.c \
|
||||||
$(SPARC_SOURCES)
|
$(SPARC_SOURCES)
|
||||||
|
|
532
hw/xfree86/loader/dixsym.c
Normal file
532
hw/xfree86/loader/dixsym.c
Normal file
|
@ -0,0 +1,532 @@
|
||||||
|
/*
|
||||||
|
* Copyright 1995-1998 by Metro Link, Inc.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
* documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
* the above copyright notice appear in all copies and that both that
|
||||||
|
* copyright notice and this permission notice appear in supporting
|
||||||
|
* documentation, and that the name of Metro Link, Inc. not be used in
|
||||||
|
* advertising or publicity pertaining to distribution of the software without
|
||||||
|
* specific, written prior permission. Metro Link, Inc. makes no
|
||||||
|
* representations about the suitability of this software for any purpose.
|
||||||
|
* It is provided "as is" without express or implied warranty.
|
||||||
|
*
|
||||||
|
* METRO LINK, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||||
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||||
|
* EVENT SHALL METRO LINK, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||||
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
||||||
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||||
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Copyright (c) 1997-2003 by The XFree86 Project, Inc.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
* Except as contained in this notice, the name of the copyright holder(s)
|
||||||
|
* and author(s) shall not be used in advertising or otherwise to promote
|
||||||
|
* the sale, use or other dealings in this Software without prior written
|
||||||
|
* authorization from the copyright holder(s) and author(s).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#undef DBMALLOC
|
||||||
|
#ifdef HAVE_XORG_CONFIG_H
|
||||||
|
#include <xorg-config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "sym.h"
|
||||||
|
#include "colormap.h"
|
||||||
|
#include "cursor.h"
|
||||||
|
#include "cursorstr.h"
|
||||||
|
#include "dix.h"
|
||||||
|
#include "dixevents.h"
|
||||||
|
#include "dixfont.h"
|
||||||
|
#include "dixstruct.h"
|
||||||
|
#include "misc.h"
|
||||||
|
#include "globals.h"
|
||||||
|
#include "os.h"
|
||||||
|
#include "osdep.h"
|
||||||
|
#include "resource.h"
|
||||||
|
#include "servermd.h"
|
||||||
|
#include "scrnintstr.h"
|
||||||
|
#include "windowstr.h"
|
||||||
|
#include "extension.h"
|
||||||
|
#define EXTENSION_PROC_ARGS void *
|
||||||
|
#include "extnsionst.h"
|
||||||
|
#include "swaprep.h"
|
||||||
|
#include "swapreq.h"
|
||||||
|
#include "inputstr.h"
|
||||||
|
#include <X11/extensions/XIproto.h>
|
||||||
|
#include "exevents.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
#ifdef XV
|
||||||
|
#include "xvmodproc.h"
|
||||||
|
#endif
|
||||||
|
#include "dgaproc.h"
|
||||||
|
#ifdef RENDER
|
||||||
|
#include "mipict.h"
|
||||||
|
#include "renderedge.h"
|
||||||
|
#endif
|
||||||
|
#include "selection.h"
|
||||||
|
#ifdef XKB
|
||||||
|
#include <X11/extensions/XKBsrv.h>
|
||||||
|
extern int XkbDfltRepeatDelay, XkbDfltRepeatInterval;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern Selection *CurrentSelections;
|
||||||
|
extern int NumCurrentSelections;
|
||||||
|
|
||||||
|
/* DIX things */
|
||||||
|
|
||||||
|
_X_HIDDEN void *dixLookupTab[] = {
|
||||||
|
|
||||||
|
/* dix */
|
||||||
|
/* atom.c */
|
||||||
|
SYMFUNC(MakeAtom)
|
||||||
|
SYMFUNC(ValidAtom)
|
||||||
|
/* colormap.c */
|
||||||
|
SYMFUNC(AllocColor)
|
||||||
|
SYMFUNC(CreateColormap)
|
||||||
|
SYMFUNC(FakeAllocColor)
|
||||||
|
SYMFUNC(FakeFreeColor)
|
||||||
|
SYMFUNC(FreeColors)
|
||||||
|
SYMFUNC(StoreColors)
|
||||||
|
SYMFUNC(TellLostMap)
|
||||||
|
SYMFUNC(TellGainedMap)
|
||||||
|
SYMFUNC(QueryColors)
|
||||||
|
/* cursor.c */
|
||||||
|
SYMFUNC(FreeCursor)
|
||||||
|
/* devices.c */
|
||||||
|
SYMFUNC(Ones)
|
||||||
|
SYMFUNC(InitButtonClassDeviceStruct)
|
||||||
|
SYMFUNC(InitFocusClassDeviceStruct)
|
||||||
|
SYMFUNC(InitLedFeedbackClassDeviceStruct)
|
||||||
|
SYMFUNC(InitPtrFeedbackClassDeviceStruct)
|
||||||
|
SYMFUNC(InitKbdFeedbackClassDeviceStruct)
|
||||||
|
SYMFUNC(InitIntegerFeedbackClassDeviceStruct)
|
||||||
|
SYMFUNC(InitStringFeedbackClassDeviceStruct)
|
||||||
|
SYMFUNC(InitBellFeedbackClassDeviceStruct)
|
||||||
|
SYMFUNC(InitValuatorClassDeviceStruct)
|
||||||
|
SYMFUNC(InitKeyClassDeviceStruct)
|
||||||
|
SYMFUNC(InitKeyboardDeviceStruct)
|
||||||
|
SYMFUNC(SendMappingNotify)
|
||||||
|
SYMFUNC(InitPointerDeviceStruct)
|
||||||
|
SYMFUNC(LookupKeyboardDevice)
|
||||||
|
SYMFUNC(LookupPointerDevice)
|
||||||
|
/* dispatch.c */
|
||||||
|
SYMFUNC(SetInputCheck)
|
||||||
|
SYMFUNC(SendErrorToClient)
|
||||||
|
SYMFUNC(UpdateCurrentTime)
|
||||||
|
SYMFUNC(UpdateCurrentTimeIf)
|
||||||
|
SYMFUNC(ProcBadRequest)
|
||||||
|
SYMVAR(dispatchException)
|
||||||
|
SYMVAR(isItTimeToYield)
|
||||||
|
SYMVAR(ClientStateCallback)
|
||||||
|
SYMVAR(ServerGrabCallback)
|
||||||
|
SYMVAR(CurrentSelections)
|
||||||
|
SYMVAR(NumCurrentSelections)
|
||||||
|
/* dixfonts.c */
|
||||||
|
SYMFUNC(CloseFont)
|
||||||
|
SYMFUNC(FontToXError)
|
||||||
|
SYMFUNC(LoadGlyphs)
|
||||||
|
SYMVAR(fpe_functions)
|
||||||
|
/* dixutils.c */
|
||||||
|
SYMFUNC(AddCallback)
|
||||||
|
SYMFUNC(ClientSleep)
|
||||||
|
SYMFUNC(ClientTimeToServerTime)
|
||||||
|
SYMFUNC(ClientWakeup)
|
||||||
|
SYMFUNC(CompareTimeStamps)
|
||||||
|
SYMFUNC(CopyISOLatin1Lowered)
|
||||||
|
SYMFUNC(DeleteCallback)
|
||||||
|
SYMFUNC(LookupClient)
|
||||||
|
SYMFUNC(LookupDrawable)
|
||||||
|
SYMFUNC(LookupWindow)
|
||||||
|
SYMFUNC(NoopDDA)
|
||||||
|
SYMFUNC(QueueWorkProc)
|
||||||
|
SYMFUNC(RegisterBlockAndWakeupHandlers)
|
||||||
|
SYMFUNC(RemoveBlockAndWakeupHandlers)
|
||||||
|
#ifdef XCSECURITY
|
||||||
|
SYMFUNC(SecurityLookupDrawable)
|
||||||
|
SYMFUNC(SecurityLookupWindow)
|
||||||
|
#endif
|
||||||
|
/* events.c */
|
||||||
|
SYMFUNC(CheckCursorConfinement)
|
||||||
|
SYMFUNC(DeliverEvents)
|
||||||
|
SYMFUNC(NewCurrentScreen)
|
||||||
|
SYMFUNC(PointerConfinedToScreen)
|
||||||
|
SYMFUNC(TryClientEvents)
|
||||||
|
SYMFUNC(WriteEventsToClient)
|
||||||
|
SYMFUNC(GetCurrentRootWindow)
|
||||||
|
SYMFUNC(GetSpritePosition)
|
||||||
|
SYMFUNC(GetSpriteWindow)
|
||||||
|
SYMFUNC(GetSpriteCursor)
|
||||||
|
SYMFUNC(WindowsRestructured)
|
||||||
|
SYMVAR(DeviceEventCallback)
|
||||||
|
SYMVAR(EventCallback)
|
||||||
|
SYMVAR(inputInfo)
|
||||||
|
SYMFUNC(SetCriticalEvent)
|
||||||
|
#ifdef PANORAMIX
|
||||||
|
SYMFUNC(XineramaGetCursorScreen)
|
||||||
|
#endif
|
||||||
|
/* property.c */
|
||||||
|
SYMFUNC(ChangeWindowProperty)
|
||||||
|
/* extension.c */
|
||||||
|
SYMFUNC(AddExtension)
|
||||||
|
SYMFUNC(AddExtensionAlias)
|
||||||
|
SYMFUNC(CheckExtension)
|
||||||
|
SYMFUNC(DeclareExtensionSecurity)
|
||||||
|
SYMFUNC(MinorOpcodeOfRequest)
|
||||||
|
SYMFUNC(StandardMinorOpcode)
|
||||||
|
#ifdef XEVIE
|
||||||
|
SYMVAR(xeviehot)
|
||||||
|
SYMVAR(xeviewin)
|
||||||
|
#endif
|
||||||
|
/* gc.c */
|
||||||
|
SYMFUNC(CopyGC)
|
||||||
|
SYMFUNC(CreateGC)
|
||||||
|
SYMFUNC(CreateScratchGC)
|
||||||
|
SYMFUNC(ChangeGC)
|
||||||
|
SYMFUNC(dixChangeGC)
|
||||||
|
SYMFUNC(DoChangeGC)
|
||||||
|
SYMFUNC(FreeGC)
|
||||||
|
SYMFUNC(FreeScratchGC)
|
||||||
|
SYMFUNC(GetScratchGC)
|
||||||
|
SYMFUNC(SetClipRects)
|
||||||
|
SYMFUNC(ValidateGC)
|
||||||
|
SYMFUNC(VerifyRectOrder)
|
||||||
|
SYMFUNC(SetDashes)
|
||||||
|
/* globals.c */
|
||||||
|
SYMVAR(ScreenSaverTime)
|
||||||
|
#ifdef DPMSExtension
|
||||||
|
SYMVAR(DPMSEnabled)
|
||||||
|
SYMVAR(DPMSCapableFlag)
|
||||||
|
SYMVAR(DPMSOffTime)
|
||||||
|
SYMVAR(DPMSPowerLevel)
|
||||||
|
SYMVAR(DPMSStandbyTime)
|
||||||
|
SYMVAR(DPMSSuspendTime)
|
||||||
|
SYMVAR(DPMSEnabledSwitch)
|
||||||
|
SYMVAR(DPMSDisabledSwitch)
|
||||||
|
SYMVAR(defaultDPMSEnabled)
|
||||||
|
#endif
|
||||||
|
/* bigreq */
|
||||||
|
SYMVAR(maxBigRequestSize)
|
||||||
|
#ifdef XV
|
||||||
|
/* XXX These are exported from the DDX, not DIX. */
|
||||||
|
SYMVAR(XvScreenInitProc)
|
||||||
|
SYMVAR(XvGetScreenIndexProc)
|
||||||
|
SYMVAR(XvGetRTPortProc)
|
||||||
|
SYMVAR(XvMCScreenInitProc)
|
||||||
|
#endif
|
||||||
|
SYMVAR(ScreenSaverBlanking)
|
||||||
|
SYMVAR(WindowTable)
|
||||||
|
SYMVAR(clients)
|
||||||
|
SYMVAR(currentMaxClients)
|
||||||
|
SYMVAR(currentTime)
|
||||||
|
SYMVAR(defaultColorVisualClass)
|
||||||
|
SYMVAR(display)
|
||||||
|
SYMVAR(globalSerialNumber)
|
||||||
|
SYMVAR(lastDeviceEventTime)
|
||||||
|
SYMVAR(monitorResolution)
|
||||||
|
SYMVAR(permitOldBugs)
|
||||||
|
SYMVAR(screenInfo)
|
||||||
|
SYMVAR(serverClient)
|
||||||
|
SYMVAR(serverGeneration)
|
||||||
|
/* main.c */
|
||||||
|
SYMFUNC(NotImplemented)
|
||||||
|
SYMVAR(PixmapWidthPaddingInfo)
|
||||||
|
/* pixmap.c */
|
||||||
|
SYMFUNC(AllocatePixmap)
|
||||||
|
SYMFUNC(GetScratchPixmapHeader)
|
||||||
|
SYMFUNC(FreeScratchPixmapHeader)
|
||||||
|
/* privates.c */
|
||||||
|
SYMFUNC(AllocateClientPrivate)
|
||||||
|
SYMFUNC(AllocateClientPrivateIndex)
|
||||||
|
SYMFUNC(AllocateGCPrivate)
|
||||||
|
SYMFUNC(AllocateGCPrivateIndex)
|
||||||
|
SYMFUNC(AllocateWindowPrivate)
|
||||||
|
SYMFUNC(AllocateWindowPrivateIndex)
|
||||||
|
SYMFUNC(AllocateScreenPrivateIndex)
|
||||||
|
SYMFUNC(AllocateColormapPrivateIndex)
|
||||||
|
SYMFUNC(AllocateDevicePrivateIndex)
|
||||||
|
SYMFUNC(AllocateDevicePrivate)
|
||||||
|
#ifdef PIXPRIV
|
||||||
|
SYMFUNC(AllocatePixmapPrivateIndex)
|
||||||
|
SYMFUNC(AllocatePixmapPrivate)
|
||||||
|
#endif
|
||||||
|
/* resource.c */
|
||||||
|
SYMFUNC(AddResource)
|
||||||
|
SYMFUNC(ChangeResourceValue)
|
||||||
|
SYMFUNC(CreateNewResourceClass)
|
||||||
|
SYMFUNC(CreateNewResourceType)
|
||||||
|
SYMFUNC(FakeClientID)
|
||||||
|
SYMFUNC(FreeResource)
|
||||||
|
SYMFUNC(FreeResourceByType)
|
||||||
|
SYMFUNC(GetXIDList)
|
||||||
|
SYMFUNC(GetXIDRange)
|
||||||
|
SYMFUNC(LookupIDByType)
|
||||||
|
SYMFUNC(LookupIDByClass)
|
||||||
|
SYMFUNC(LegalNewID)
|
||||||
|
#ifdef XCSECURITY
|
||||||
|
SYMFUNC(SecurityLookupIDByClass)
|
||||||
|
SYMFUNC(SecurityLookupIDByType)
|
||||||
|
#endif
|
||||||
|
SYMFUNC(FindClientResourcesByType)
|
||||||
|
SYMFUNC(FindAllClientResources)
|
||||||
|
SYMVAR(lastResourceType)
|
||||||
|
SYMVAR(TypeMask)
|
||||||
|
#ifdef RES
|
||||||
|
SYMFUNC(RegisterResourceName)
|
||||||
|
SYMVAR(ResourceNames)
|
||||||
|
#endif
|
||||||
|
/* swaprep.c */
|
||||||
|
SYMFUNC(CopySwap32Write)
|
||||||
|
SYMFUNC(Swap32Write)
|
||||||
|
SYMFUNC(SwapConnSetupInfo)
|
||||||
|
SYMFUNC(SwapConnSetupPrefix)
|
||||||
|
/* swapreq.c */
|
||||||
|
SYMFUNC(SwapShorts)
|
||||||
|
SYMFUNC(SwapLongs)
|
||||||
|
SYMFUNC(SwapColorItem)
|
||||||
|
/* tables.c */
|
||||||
|
SYMVAR(EventSwapVector)
|
||||||
|
SYMVAR(ReplySwapVector)
|
||||||
|
SYMVAR(ProcVector)
|
||||||
|
/* window.c */
|
||||||
|
SYMFUNC(ChangeWindowAttributes)
|
||||||
|
SYMFUNC(CheckWindowOptionalNeed)
|
||||||
|
SYMFUNC(CreateUnclippedWinSize)
|
||||||
|
SYMFUNC(CreateWindow)
|
||||||
|
SYMFUNC(FindWindowWithOptional)
|
||||||
|
SYMFUNC(GravityTranslate)
|
||||||
|
SYMFUNC(MakeWindowOptional)
|
||||||
|
SYMFUNC(MapWindow)
|
||||||
|
SYMFUNC(MoveWindowInStack)
|
||||||
|
SYMFUNC(NotClippedByChildren)
|
||||||
|
SYMFUNC(ResizeChildrenWinSize)
|
||||||
|
SYMFUNC(SaveScreens)
|
||||||
|
SYMFUNC(SendVisibilityNotify)
|
||||||
|
SYMFUNC(SetWinSize)
|
||||||
|
SYMFUNC(SetBorderSize)
|
||||||
|
SYMFUNC(TraverseTree)
|
||||||
|
SYMFUNC(UnmapWindow)
|
||||||
|
SYMFUNC(WalkTree)
|
||||||
|
SYMVAR(deltaSaveUndersViewable)
|
||||||
|
SYMVAR(numSaveUndersViewable)
|
||||||
|
SYMVAR(savedScreenInfo)
|
||||||
|
SYMVAR(screenIsSaved)
|
||||||
|
|
||||||
|
/*os/ */
|
||||||
|
/* access.c */
|
||||||
|
SYMFUNC(LocalClient)
|
||||||
|
/* utils.c */
|
||||||
|
SYMFUNC(Xstrdup)
|
||||||
|
SYMFUNC(XNFstrdup)
|
||||||
|
SYMVAR(Must_have_memory)
|
||||||
|
SYMFUNC(AdjustWaitForDelay)
|
||||||
|
SYMVAR(noTestExtensions)
|
||||||
|
SYMFUNC(GiveUp)
|
||||||
|
|
||||||
|
#ifdef BIGREQS
|
||||||
|
SYMVAR(noBigReqExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef COMPOSITE
|
||||||
|
SYMVAR(noCompositeExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef DAMAGE
|
||||||
|
SYMVAR(noDamageExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef DBE
|
||||||
|
SYMVAR(noDbeExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef DPMSExtension
|
||||||
|
SYMVAR(noDPMSExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef EVI
|
||||||
|
SYMVAR(noEVIExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef FONTCACHE
|
||||||
|
SYMVAR(noFontCacheExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef GLXEXT
|
||||||
|
SYMVAR(noGlxExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef SCREENSAVER
|
||||||
|
SYMVAR(noScreenSaverExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef MITSHM
|
||||||
|
SYMVAR(noMITShmExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef MITMISC
|
||||||
|
SYMVAR(noMITMiscExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef MULTIBUFFER
|
||||||
|
SYMVAR(noMultibufferExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef RANDR
|
||||||
|
SYMVAR(noRRExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef RENDER
|
||||||
|
SYMVAR(noRenderExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef SHAPE
|
||||||
|
SYMVAR(noShapeExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XCSECURITY
|
||||||
|
SYMVAR(noSecurityExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XSYNC
|
||||||
|
SYMVAR(noSyncExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef TOGCUP
|
||||||
|
SYMVAR(noXcupExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef RES
|
||||||
|
SYMVAR(noResExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XAPPGROUP
|
||||||
|
SYMVAR(noXagExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XCMISC
|
||||||
|
SYMVAR(noXCMiscExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XEVIE
|
||||||
|
SYMVAR(noXevieExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XF86BIGFONT
|
||||||
|
SYMVAR(noXFree86BigfontExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XFreeXDGA
|
||||||
|
SYMVAR(noXFree86DGAExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XF86DRI
|
||||||
|
SYMVAR(noXFree86DRIExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XF86MISC
|
||||||
|
SYMVAR(noXFree86MiscExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XF86VIDMODE
|
||||||
|
SYMVAR(noXFree86VidModeExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XFIXES
|
||||||
|
SYMVAR(noXFixesExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XKB
|
||||||
|
/* |noXkbExtension| is defined in xc/programs/Xserver/xkb/xkbInit.c */
|
||||||
|
SYMVAR(noXkbExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef PANORAMIX
|
||||||
|
SYMVAR(noPanoramiXExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XINPUT
|
||||||
|
SYMVAR(noXInputExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XIDLE
|
||||||
|
SYMVAR(noXIdleExtension)
|
||||||
|
#endif
|
||||||
|
#ifdef XV
|
||||||
|
SYMVAR(noXvExtension)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* log.c */
|
||||||
|
SYMFUNC(LogVWrite)
|
||||||
|
SYMFUNC(LogWrite)
|
||||||
|
SYMFUNC(LogVMessageVerb)
|
||||||
|
SYMFUNC(LogMessageVerb)
|
||||||
|
SYMFUNC(LogMessage)
|
||||||
|
SYMFUNC(FatalError)
|
||||||
|
SYMFUNC(VErrorF)
|
||||||
|
SYMFUNC(ErrorF)
|
||||||
|
SYMFUNC(Error)
|
||||||
|
/* xalloc.c */
|
||||||
|
SYMFUNC(XNFalloc)
|
||||||
|
SYMFUNC(XNFcalloc)
|
||||||
|
SYMFUNC(XNFrealloc)
|
||||||
|
SYMFUNC(Xalloc)
|
||||||
|
SYMFUNC(Xcalloc)
|
||||||
|
SYMFUNC(Xfree)
|
||||||
|
SYMFUNC(Xrealloc)
|
||||||
|
/* WaitFor.c */
|
||||||
|
SYMFUNC(TimerFree)
|
||||||
|
SYMFUNC(TimerSet)
|
||||||
|
SYMFUNC(TimerCancel)
|
||||||
|
/* io.c */
|
||||||
|
SYMFUNC(WriteToClient)
|
||||||
|
SYMFUNC(SetCriticalOutputPending)
|
||||||
|
SYMVAR(FlushCallback)
|
||||||
|
SYMVAR(ReplyCallback)
|
||||||
|
SYMVAR(SkippedRequestsCallback)
|
||||||
|
SYMFUNC(ResetCurrentRequest)
|
||||||
|
/* connection.c */
|
||||||
|
SYMFUNC(IgnoreClient)
|
||||||
|
SYMFUNC(AttendClient)
|
||||||
|
SYMFUNC(AddEnabledDevice)
|
||||||
|
SYMFUNC(RemoveEnabledDevice)
|
||||||
|
SYMFUNC(MakeClientGrabPervious)
|
||||||
|
SYMFUNC(MakeClientGrabImpervious)
|
||||||
|
SYMVAR(GrabInProgress)
|
||||||
|
|
||||||
|
#ifdef XKB
|
||||||
|
/* xkb/xkbInit.c */
|
||||||
|
SYMFUNC(XkbInitKeyboardDeviceStruct)
|
||||||
|
SYMFUNC(XkbSetRulesDflts)
|
||||||
|
SYMVAR(XkbDfltRepeatDelay)
|
||||||
|
SYMVAR(XkbDfltRepeatInterval)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XINPUT
|
||||||
|
/* Xi */
|
||||||
|
/* exevents.c */
|
||||||
|
SYMFUNC(InitValuatorAxisStruct)
|
||||||
|
SYMFUNC(InitProximityClassDeviceStruct)
|
||||||
|
/* extinit.c */
|
||||||
|
SYMFUNC(AssignTypeAndName)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* xf86DGA.c */
|
||||||
|
/* XXX This is exported from the DDX, not DIX. */
|
||||||
|
SYMVAR(XDGAEventBase)
|
||||||
|
|
||||||
|
/* librender.a */
|
||||||
|
#ifdef RENDER
|
||||||
|
/* picture.c */
|
||||||
|
SYMFUNC(PictureInit)
|
||||||
|
SYMFUNC(PictureTransformPoint)
|
||||||
|
SYMFUNC(PictureTransformPoint3d)
|
||||||
|
SYMFUNC(PictureGetSubpixelOrder)
|
||||||
|
SYMFUNC(PictureSetSubpixelOrder)
|
||||||
|
SYMVAR(PictureScreenPrivateIndex)
|
||||||
|
/* mipict.c */
|
||||||
|
SYMFUNC(miPictureInit)
|
||||||
|
SYMFUNC(miComputeCompositeRegion)
|
||||||
|
/* miglyph.c */
|
||||||
|
SYMFUNC(miGlyphs)
|
||||||
|
/* mirect.c */
|
||||||
|
SYMFUNC(miCompositeRects)
|
||||||
|
/* filter.c */
|
||||||
|
SYMFUNC(PictureAddFilter)
|
||||||
|
SYMFUNC(PictureSetFilterAlias)
|
||||||
|
/* renderedge.c */
|
||||||
|
SYMFUNC(RenderSampleCeilY)
|
||||||
|
SYMFUNC(RenderSampleFloorY)
|
||||||
|
SYMFUNC(RenderEdgeStep)
|
||||||
|
SYMFUNC(RenderEdgeInit)
|
||||||
|
SYMFUNC(RenderLineFixedEdgeInit)
|
||||||
|
#endif
|
||||||
|
};
|
79
hw/xfree86/loader/extsym.c
Normal file
79
hw/xfree86/loader/extsym.c
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* Copyright 1999-2003 by The XFree86 Project, Inc.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
* documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
* the above copyright notice appear in all copies and that both that
|
||||||
|
* copyright notice and this permission notice appear in supporting
|
||||||
|
* documentation, and that the name of The XFree86 Project, Inc. not be used in
|
||||||
|
* advertising or publicity pertaining to distribution of the software without
|
||||||
|
* specific, written prior permission. The XFree86 Project, Inc. makes no
|
||||||
|
* representations about the suitability of this software for any purpose.
|
||||||
|
* It is provided "as is" without express or implied warranty.
|
||||||
|
*
|
||||||
|
* THE XFREE86 PROJECT, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
||||||
|
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS, IN NO EVENT SHALL THE XFREE86 PROJECT, INC. BE LIABLE
|
||||||
|
* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||||
|
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_XORG_CONFIG_H
|
||||||
|
#include <xorg-config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "resource.h"
|
||||||
|
#include "sym.h"
|
||||||
|
#include "misc.h"
|
||||||
|
#ifdef PANORAMIX
|
||||||
|
#include "panoramiX.h"
|
||||||
|
#endif
|
||||||
|
#include "sleepuntil.h"
|
||||||
|
|
||||||
|
#ifdef HAS_SHM
|
||||||
|
extern int ShmCompletionCode;
|
||||||
|
extern int BadShmSegCode;
|
||||||
|
extern RESTYPE ShmSegType, ShmPixType;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef PANORAMIX
|
||||||
|
extern Bool noPanoramiXExtension;
|
||||||
|
extern int PanoramiXNumScreens;
|
||||||
|
extern PanoramiXData *panoramiXdataPtr;
|
||||||
|
extern XID *PanoramiXVisualTable;
|
||||||
|
extern unsigned long XRT_WINDOW;
|
||||||
|
extern unsigned long XRT_PIXMAP;
|
||||||
|
extern unsigned long XRT_GC;
|
||||||
|
extern unsigned long XRT_COLORMAP;
|
||||||
|
extern unsigned long XRC_DRAWABLE;
|
||||||
|
extern Bool XineramaRegisterConnectionBlockCallback(void (*func) (void));
|
||||||
|
extern int XineramaDeleteResource(pointer, XID);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_X_HIDDEN void *extLookupTab[] = {
|
||||||
|
|
||||||
|
SYMFUNC(ClientSleepUntil)
|
||||||
|
|
||||||
|
#ifdef HAS_SHM
|
||||||
|
SYMVAR(ShmCompletionCode)
|
||||||
|
SYMVAR(BadShmSegCode)
|
||||||
|
SYMVAR(ShmSegType)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef PANORAMIX
|
||||||
|
SYMFUNC(XineramaRegisterConnectionBlockCallback)
|
||||||
|
SYMFUNC(XineramaDeleteResource)
|
||||||
|
SYMVAR(PanoramiXNumScreens)
|
||||||
|
SYMVAR(panoramiXdataPtr)
|
||||||
|
SYMVAR(PanoramiXVisualTable)
|
||||||
|
SYMVAR(XRT_WINDOW)
|
||||||
|
SYMVAR(XRT_PIXMAP)
|
||||||
|
SYMVAR(XRT_GC)
|
||||||
|
SYMVAR(XRT_COLORMAP)
|
||||||
|
SYMVAR(XRC_DRAWABLE)
|
||||||
|
#endif
|
||||||
|
};
|
109
hw/xfree86/loader/fontsym.c
Normal file
109
hw/xfree86/loader/fontsym.c
Normal file
|
@ -0,0 +1,109 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 1998-2002 by The XFree86 Project, Inc.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
* Except as contained in this notice, the name of the copyright holder(s)
|
||||||
|
* and author(s) shall not be used in advertising or otherwise to promote
|
||||||
|
* the sale, use or other dealings in this Software without prior written
|
||||||
|
* authorization from the copyright holder(s) and author(s).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_XORG_CONFIG_H
|
||||||
|
#include <xorg-config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <X11/fonts/font.h>
|
||||||
|
#include "sym.h"
|
||||||
|
#include <X11/fonts/fntfilst.h>
|
||||||
|
#include <X11/fonts/fontenc.h>
|
||||||
|
#ifdef FONTENC_COMPATIBILITY
|
||||||
|
#include <X11/fonts/fontencc.h>
|
||||||
|
#endif
|
||||||
|
#include <X11/fonts/fntfilio.h>
|
||||||
|
#include <X11/fonts/fntfil.h>
|
||||||
|
#include <X11/fonts/fontutil.h>
|
||||||
|
#include <X11/fonts/fontxlfd.h>
|
||||||
|
#ifdef FONTCACHE
|
||||||
|
#define _FONTCACHE_SERVER_
|
||||||
|
#include "fontcache.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_X_HIDDEN void *fontLookupTab[] = {
|
||||||
|
|
||||||
|
SYMFUNC(TwoByteSwap)
|
||||||
|
SYMFUNC(FourByteSwap)
|
||||||
|
SYMFUNC(FontCouldBeTerminal)
|
||||||
|
SYMFUNC(BufFileRead)
|
||||||
|
SYMFUNC(BufFileWrite)
|
||||||
|
SYMFUNC(CheckFSFormat)
|
||||||
|
SYMFUNC(FontFileOpen)
|
||||||
|
SYMFUNC(FontFilePriorityRegisterRenderer)
|
||||||
|
SYMFUNC(FontFileRegisterRenderer)
|
||||||
|
SYMFUNC(FontParseXLFDName)
|
||||||
|
SYMFUNC(FontFileCloseFont)
|
||||||
|
SYMFUNC(FontFileOpenBitmap)
|
||||||
|
SYMFUNC(FontFileCompleteXLFD)
|
||||||
|
SYMFUNC(FontFileCountDashes)
|
||||||
|
SYMFUNC(FontFileFindNameInDir)
|
||||||
|
SYMFUNC(FontFileClose)
|
||||||
|
SYMFUNC(FontComputeInfoAccelerators)
|
||||||
|
SYMFUNC(FontDefaultFormat)
|
||||||
|
SYMFUNC(NameForAtom)
|
||||||
|
SYMFUNC(BitOrderInvert)
|
||||||
|
SYMFUNC(FontFileMatchRenderer)
|
||||||
|
SYMFUNC(RepadBitmap)
|
||||||
|
SYMFUNC(FontEncName)
|
||||||
|
SYMFUNC(FontEncRecode)
|
||||||
|
SYMFUNC(FontEncFind)
|
||||||
|
SYMFUNC(FontMapFind)
|
||||||
|
SYMFUNC(FontEncMapFind)
|
||||||
|
SYMFUNC(FontEncFromXLFD)
|
||||||
|
SYMFUNC(FontEncDirectory)
|
||||||
|
SYMFUNC(FontMapReverse)
|
||||||
|
SYMFUNC(FontMapReverseFree)
|
||||||
|
SYMFUNC(CreateFontRec)
|
||||||
|
SYMFUNC(DestroyFontRec)
|
||||||
|
SYMFUNC(GetGlyphs)
|
||||||
|
SYMFUNC(QueryGlyphExtents)
|
||||||
|
|
||||||
|
SYMVAR(FontFileBitmapSources)
|
||||||
|
|
||||||
|
#ifdef FONTENC_COMPATIBILITY
|
||||||
|
/* Obsolete backwards compatibility symbols -- fontencc.c */
|
||||||
|
SYMFUNC(font_encoding_from_xlfd)
|
||||||
|
SYMFUNC(font_encoding_find)
|
||||||
|
SYMFUNC(font_encoding_recode)
|
||||||
|
SYMFUNC(font_encoding_name)
|
||||||
|
SYMFUNC(identifyEncodingFile)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef FONTCACHE
|
||||||
|
/* fontcache.c */
|
||||||
|
SYMFUNC(FontCacheGetSettings)
|
||||||
|
SYMFUNC(FontCacheGetStatistics)
|
||||||
|
SYMFUNC(FontCacheChangeSettings)
|
||||||
|
SYMFUNC(FontCacheOpenCache)
|
||||||
|
SYMFUNC(FontCacheCloseCache)
|
||||||
|
SYMFUNC(FontCacheSearchEntry)
|
||||||
|
SYMFUNC(FontCacheGetEntry)
|
||||||
|
SYMFUNC(FontCacheInsertEntry)
|
||||||
|
SYMFUNC(FontCacheGetBitmap)
|
||||||
|
#endif
|
||||||
|
};
|
|
@ -73,8 +73,8 @@
|
||||||
#include "loaderProcs.h"
|
#include "loaderProcs.h"
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
#include "xf86Priv.h"
|
#include "xf86Priv.h"
|
||||||
|
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
|
#include "sym.h"
|
||||||
|
|
||||||
#if defined(Lynx) && defined(sun)
|
#if defined(Lynx) && defined(sun)
|
||||||
/* Cross build machine doesn;t have strerror() */
|
/* Cross build machine doesn;t have strerror() */
|
||||||
|
@ -91,85 +91,6 @@
|
||||||
static char freeHandles[MAX_HANDLE];
|
static char freeHandles[MAX_HANDLE];
|
||||||
static int refCount[MAX_HANDLE];
|
static int refCount[MAX_HANDLE];
|
||||||
|
|
||||||
#if defined(__sparc__) && defined(__GNUC__) && !defined(__FreeBSD__)
|
|
||||||
# define SYMFUNCDOT(func) { "." #func, (funcptr)&__sparc_dot_ ## func },
|
|
||||||
# if !defined(__OpenBSD__)
|
|
||||||
# define SYMFUNCDOT89(func) { "." #func, (funcptr)&func ## _sparcv89 },
|
|
||||||
# define DEFFUNCDOT(func) \
|
|
||||||
extern void __sparc_dot_ ## func (void) __asm__ ("." #func); \
|
|
||||||
extern void func ## _sparcv89 (void);
|
|
||||||
# else
|
|
||||||
# define SYMFUNCDOT(func) { "." #func, (funcptr)&__sparc_dot_ ## func },
|
|
||||||
# define DEFFUNCDOT(func) \
|
|
||||||
extern void __sparc_dot_ ## func (void) __asm__ ("." #func);
|
|
||||||
#endif
|
|
||||||
DEFFUNCDOT(rem)
|
|
||||||
DEFFUNCDOT(urem)
|
|
||||||
DEFFUNCDOT(mul)
|
|
||||||
DEFFUNCDOT(umul)
|
|
||||||
DEFFUNCDOT(div)
|
|
||||||
DEFFUNCDOT(udiv)
|
|
||||||
|
|
||||||
#ifdef linux
|
|
||||||
#if defined(__GNUC__) && defined(__GLIBC__)
|
|
||||||
#define HWCAP_SPARC_MULDIV 8
|
|
||||||
extern unsigned long int _dl_hwcap;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int
|
|
||||||
sparcUseHWMulDiv(void)
|
|
||||||
{
|
|
||||||
FILE *f;
|
|
||||||
char buffer[1024];
|
|
||||||
char *p;
|
|
||||||
|
|
||||||
#if defined(__GNUC__) && defined(__GLIBC__)
|
|
||||||
unsigned long *hwcap;
|
|
||||||
|
|
||||||
__asm(".weak _dl_hwcap");
|
|
||||||
|
|
||||||
hwcap = &_dl_hwcap;
|
|
||||||
__asm("": "=r"(hwcap):"0"(hwcap));
|
|
||||||
if (hwcap) {
|
|
||||||
if (*hwcap & HWCAP_SPARC_MULDIV)
|
|
||||||
return 1;
|
|
||||||
else
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
f = fopen("/proc/cpuinfo", "r");
|
|
||||||
if (!f)
|
|
||||||
return 0;
|
|
||||||
while (fgets(buffer, 1024, f) != NULL) {
|
|
||||||
if (!strncmp(buffer, "type", 4)) {
|
|
||||||
p = strstr(buffer, "sun4");
|
|
||||||
if (p && (p[4] == 'u' || p[4] == 'd')) {
|
|
||||||
fclose(f);
|
|
||||||
return 1;
|
|
||||||
} else if (p && p[4] == 'm') {
|
|
||||||
fclose(f);
|
|
||||||
f = fopen("/proc/cpuinfo","r");
|
|
||||||
if (!f) return 0;
|
|
||||||
while (fgets(buffer, 1024, f) != NULL) {
|
|
||||||
if (!strncmp (buffer, "MMU type", 8)) {
|
|
||||||
p = strstr (buffer, "Cypress");
|
|
||||||
if (p) {
|
|
||||||
fclose(f);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fclose(f);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fclose(f);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* modules are used to identify compilation units (ie object modules).
|
* modules are used to identify compilation units (ie object modules).
|
||||||
* Archives contain multiple modules, each of which is treated seperately.
|
* Archives contain multiple modules, each of which is treated seperately.
|
||||||
|
@ -206,6 +127,10 @@ LoaderInit(void)
|
||||||
xf86Msg(X_ERROR, "LD_BIND_NOW is set, dlloader will NOT work!\n");
|
xf86Msg(X_ERROR, "LD_BIND_NOW is set, dlloader will NOT work!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xf86MsgVerb(X_INFO, 2, "Loader magic: %p\n", (void *)
|
||||||
|
((long)dixLookupTab ^ (long)extLookupTab
|
||||||
|
^ (long)fontLookupTab ^ (long)miLookupTab
|
||||||
|
^ (long)xfree86LookupTab));
|
||||||
xf86MsgVerb(X_INFO, 2, "Module ABI versions:\n");
|
xf86MsgVerb(X_INFO, 2, "Module ABI versions:\n");
|
||||||
xf86ErrorFVerb(2, "\t%s: %d.%d\n", ABI_CLASS_ANSIC,
|
xf86ErrorFVerb(2, "\t%s: %d.%d\n", ABI_CLASS_ANSIC,
|
||||||
GET_ABI_MAJOR(LoaderVersionInfo.ansicVersion),
|
GET_ABI_MAJOR(LoaderVersionInfo.ansicVersion),
|
||||||
|
|
219
hw/xfree86/loader/misym.c
Normal file
219
hw/xfree86/loader/misym.c
Normal file
|
@ -0,0 +1,219 @@
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* Copyright 1995,96 by Metro Link, Inc.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
* documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
* the above copyright notice appear in all copies and that both that
|
||||||
|
* copyright notice and this permission notice appear in supporting
|
||||||
|
* documentation, and that the name of Metro Link, Inc. not be used in
|
||||||
|
* advertising or publicity pertaining to distribution of the software without
|
||||||
|
* specific, written prior permission. Metro Link, Inc. makes no
|
||||||
|
* representations about the suitability of this software for any purpose.
|
||||||
|
* It is provided "as is" without express or implied warranty.
|
||||||
|
*
|
||||||
|
* METRO LINK, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||||
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||||
|
* EVENT SHALL METRO LINK, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||||
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
||||||
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||||
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Copyright (c) 1997-2003 by The XFree86 Project, Inc.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
* Except as contained in this notice, the name of the copyright holder(s)
|
||||||
|
* and author(s) shall not be used in advertising or otherwise to promote
|
||||||
|
* the sale, use or other dealings in this Software without prior written
|
||||||
|
* authorization from the copyright holder(s) and author(s).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_XORG_CONFIG_H
|
||||||
|
#include <xorg-config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "sym.h"
|
||||||
|
#include "misc.h"
|
||||||
|
#include "mi.h"
|
||||||
|
#include "mibank.h"
|
||||||
|
#include "miwideline.h"
|
||||||
|
#include "mibstore.h"
|
||||||
|
#include "cursor.h"
|
||||||
|
#include "mipointer.h"
|
||||||
|
#include "migc.h"
|
||||||
|
#include "miline.h"
|
||||||
|
#include "mizerarc.h"
|
||||||
|
#include "mifillarc.h"
|
||||||
|
#include "micmap.h"
|
||||||
|
#include "mioverlay.h"
|
||||||
|
#ifdef PANORAMIX
|
||||||
|
#include "resource.h"
|
||||||
|
#include "panoramiX.h"
|
||||||
|
#endif
|
||||||
|
#ifdef RENDER
|
||||||
|
#include "mipict.h"
|
||||||
|
#endif
|
||||||
|
#ifdef COMPOSITE
|
||||||
|
#include "cw.h"
|
||||||
|
#endif
|
||||||
|
#ifdef DAMAGE
|
||||||
|
#include "damage.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* mi things */
|
||||||
|
|
||||||
|
extern miPointerSpriteFuncRec miSpritePointerFuncs;
|
||||||
|
|
||||||
|
_X_HIDDEN void *miLookupTab[] = {
|
||||||
|
SYMFUNC(miClearToBackground)
|
||||||
|
SYMFUNC(miSendGraphicsExpose)
|
||||||
|
SYMFUNC(miModifyPixmapHeader)
|
||||||
|
SYMFUNC(miHandleValidateExposures)
|
||||||
|
SYMFUNC(miSetShape)
|
||||||
|
SYMFUNC(miChangeBorderWidth)
|
||||||
|
SYMFUNC(miShapedWindowIn)
|
||||||
|
SYMFUNC(miRectIn)
|
||||||
|
SYMFUNC(miZeroClipLine)
|
||||||
|
SYMFUNC(miZeroDashLine)
|
||||||
|
SYMFUNC(miClearDrawable)
|
||||||
|
SYMFUNC(miPolyPoint)
|
||||||
|
SYMFUNC(miStepDash)
|
||||||
|
SYMFUNC(miIntersect)
|
||||||
|
SYMFUNC(miRegionAppend)
|
||||||
|
SYMFUNC(miRegionCopy)
|
||||||
|
SYMFUNC(miRegionDestroy)
|
||||||
|
SYMFUNC(miRegionEmpty)
|
||||||
|
SYMFUNC(miRegionExtents)
|
||||||
|
SYMFUNC(miRegionInit)
|
||||||
|
SYMFUNC(miRegionNotEmpty)
|
||||||
|
SYMFUNC(miRegionEqual)
|
||||||
|
SYMFUNC(miRegionReset)
|
||||||
|
SYMFUNC(miRegionUninit)
|
||||||
|
SYMFUNC(miRegionValidate)
|
||||||
|
SYMFUNC(miTranslateRegion)
|
||||||
|
SYMFUNC(miHandleExposures)
|
||||||
|
SYMFUNC(miPolyFillRect)
|
||||||
|
SYMFUNC(miPolyFillArc)
|
||||||
|
SYMFUNC(miImageGlyphBlt)
|
||||||
|
SYMFUNC(miPolyGlyphBlt)
|
||||||
|
SYMFUNC(miFillPolygon)
|
||||||
|
SYMFUNC(miFillConvexPoly)
|
||||||
|
SYMFUNC(miPolySegment)
|
||||||
|
SYMFUNC(miZeroLine)
|
||||||
|
SYMFUNC(miWideLine)
|
||||||
|
SYMFUNC(miWideDash)
|
||||||
|
SYMFUNC(miZeroPolyArc)
|
||||||
|
SYMFUNC(miPolyArc)
|
||||||
|
SYMFUNC(miCreateGCOps)
|
||||||
|
SYMFUNC(miDestroyGCOps)
|
||||||
|
SYMFUNC(miComputeCompositeClip)
|
||||||
|
SYMFUNC(miChangeGC)
|
||||||
|
SYMFUNC(miCopyGC)
|
||||||
|
SYMFUNC(miDestroyGC)
|
||||||
|
SYMFUNC(miChangeClip)
|
||||||
|
SYMFUNC(miDestroyClip)
|
||||||
|
SYMFUNC(miCopyClip)
|
||||||
|
SYMFUNC(miPolyRectangle)
|
||||||
|
SYMFUNC(miPolyText8)
|
||||||
|
SYMFUNC(miPolyText16)
|
||||||
|
SYMFUNC(miImageText8)
|
||||||
|
SYMFUNC(miImageText16)
|
||||||
|
SYMFUNC(miRegionCreate)
|
||||||
|
SYMFUNC(miPaintWindow)
|
||||||
|
SYMFUNC(miZeroArcSetup)
|
||||||
|
SYMFUNC(miFillArcSetup)
|
||||||
|
SYMFUNC(miFillArcSliceSetup)
|
||||||
|
SYMFUNC(miFindMaxBand)
|
||||||
|
SYMFUNC(miClipSpans)
|
||||||
|
SYMFUNC(miAllocateGCPrivateIndex)
|
||||||
|
SYMFUNC(miScreenInit)
|
||||||
|
SYMFUNC(miGetScreenPixmap)
|
||||||
|
SYMFUNC(miSetScreenPixmap)
|
||||||
|
SYMFUNC(miPointerCurrentScreen)
|
||||||
|
SYMFUNC(miRectAlloc)
|
||||||
|
SYMFUNC(miInitializeBackingStore)
|
||||||
|
SYMFUNC(miInitializeBanking)
|
||||||
|
SYMFUNC(miModifyBanking)
|
||||||
|
SYMFUNC(miCopyPlane)
|
||||||
|
SYMFUNC(miCopyArea)
|
||||||
|
SYMFUNC(miCreateScreenResources)
|
||||||
|
SYMFUNC(miGetImage)
|
||||||
|
SYMFUNC(miPutImage)
|
||||||
|
SYMFUNC(miPushPixels)
|
||||||
|
SYMFUNC(miPointerInitialize)
|
||||||
|
SYMFUNC(miPointerPosition)
|
||||||
|
SYMFUNC(miRecolorCursor)
|
||||||
|
SYMFUNC(miPointerWarpCursor)
|
||||||
|
SYMFUNC(miDCInitialize)
|
||||||
|
SYMFUNC(miRectsToRegion)
|
||||||
|
SYMFUNC(miPointInRegion)
|
||||||
|
SYMFUNC(miInverse)
|
||||||
|
SYMFUNC(miSubtract)
|
||||||
|
SYMFUNC(miUnion)
|
||||||
|
SYMFUNC(miPolyBuildEdge)
|
||||||
|
SYMFUNC(miPolyBuildPoly)
|
||||||
|
SYMFUNC(miRoundJoinClip)
|
||||||
|
SYMFUNC(miRoundCapClip)
|
||||||
|
SYMFUNC(miSetZeroLineBias)
|
||||||
|
SYMFUNC(miResolveColor)
|
||||||
|
SYMFUNC(miInitializeColormap)
|
||||||
|
SYMFUNC(miInstallColormap)
|
||||||
|
SYMFUNC(miUninstallColormap)
|
||||||
|
SYMFUNC(miListInstalledColormaps)
|
||||||
|
SYMFUNC(miExpandDirectColors)
|
||||||
|
SYMFUNC(miCreateDefColormap)
|
||||||
|
SYMFUNC(miClearVisualTypes)
|
||||||
|
SYMFUNC(miSetVisualTypes)
|
||||||
|
SYMFUNC(miSetVisualTypesAndMasks)
|
||||||
|
SYMFUNC(miGetDefaultVisualMask)
|
||||||
|
SYMFUNC(miSetPixmapDepths)
|
||||||
|
SYMFUNC(miInitVisuals)
|
||||||
|
SYMFUNC(miWindowExposures)
|
||||||
|
SYMFUNC(miSegregateChildren)
|
||||||
|
SYMFUNC(miHookInitVisuals)
|
||||||
|
SYMFUNC(miPointerAbsoluteCursor)
|
||||||
|
SYMFUNC(miPointerGetMotionEvents)
|
||||||
|
SYMFUNC(miPointerGetMotionBufferSize)
|
||||||
|
SYMFUNC(miOverlayCopyUnderlay)
|
||||||
|
SYMFUNC(miOverlaySetTransFunction)
|
||||||
|
SYMFUNC(miOverlayCollectUnderlayRegions)
|
||||||
|
SYMFUNC(miInitOverlay)
|
||||||
|
SYMFUNC(miOverlayComputeCompositeClip)
|
||||||
|
SYMFUNC(miOverlayGetPrivateClips)
|
||||||
|
SYMFUNC(miOverlaySetRootClip)
|
||||||
|
SYMVAR(miEmptyBox)
|
||||||
|
SYMVAR(miEmptyData)
|
||||||
|
SYMVAR(miZeroLineScreenIndex)
|
||||||
|
SYMVAR(miSpritePointerFuncs)
|
||||||
|
SYMVAR(miPointerScreenIndex)
|
||||||
|
SYMVAR(miInstalledMaps)
|
||||||
|
SYMVAR(miInitVisualsProc)
|
||||||
|
#ifdef RENDER
|
||||||
|
SYMFUNC(miGlyphExtents)
|
||||||
|
#endif
|
||||||
|
#ifdef COMPOSITE
|
||||||
|
SYMFUNC(miDisableCompositeWrapper)
|
||||||
|
#endif
|
||||||
|
#ifdef DAMAGE
|
||||||
|
SYMFUNC(DamageDamageRegion)
|
||||||
|
#endif
|
||||||
|
};
|
|
@ -1,7 +1,4 @@
|
||||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/sym.h,v 1.6 2000/10/24 00:06:55 anderson Exp $ */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Copyright 1995,96 by Metro Link, Inc.
|
* Copyright 1995,96 by Metro Link, Inc.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, distribute, and sell this software and its
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
@ -30,21 +27,15 @@
|
||||||
#ifndef _SYM_H
|
#ifndef _SYM_H
|
||||||
#define _SYM_H
|
#define _SYM_H
|
||||||
|
|
||||||
/*
|
extern void *dixLookupTab[];
|
||||||
* This structure is used to pass in symbol information that is being
|
extern void *extLookupTab[];
|
||||||
* added to the symbol table.
|
extern void *fontLookupTab[];
|
||||||
*/
|
extern void *miLookupTab[];
|
||||||
|
extern void *xfree86LookupTab[];
|
||||||
|
|
||||||
typedef void (*funcptr) (void);
|
#define SYMFUNC( func ) &func,
|
||||||
|
#define SYMFUNCALIAS( name, func ) &func,
|
||||||
typedef struct {
|
#define SYMVAR( var ) &var,
|
||||||
char *symName;
|
#define SYMVARALIAS( name, var ) &var,
|
||||||
funcptr offset;
|
|
||||||
} LOOKUP;
|
|
||||||
|
|
||||||
#define SYMFUNC( func ) { #func, (funcptr)&func },
|
|
||||||
#define SYMFUNCALIAS( name, func ) { name, (funcptr)&func },
|
|
||||||
#define SYMVAR( var ) { #var, (funcptr)&var },
|
|
||||||
#define SYMVARALIAS( name, var ) { name, (funcptr)&var },
|
|
||||||
|
|
||||||
#endif /* _SYM_H */
|
#endif /* _SYM_H */
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/xf86sym.c,v 1.242 2003/10/27 20:51:16 herrb Exp $ */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Copyright 1995,96 by Metro Link, Inc.
|
* Copyright 1995,96 by Metro Link, Inc.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, distribute, and sell this software and its
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
@ -239,7 +236,7 @@ extern unsigned short ldw_brx(volatile unsigned char *, int);
|
||||||
|
|
||||||
/* XFree86 things */
|
/* XFree86 things */
|
||||||
|
|
||||||
LOOKUP xfree86LookupTab[] = {
|
_X_HIDDEN void *xfree86LookupTab[] = {
|
||||||
|
|
||||||
/* Public OSlib functions */
|
/* Public OSlib functions */
|
||||||
SYMFUNC(xf86ReadBIOS)
|
SYMFUNC(xf86ReadBIOS)
|
||||||
|
@ -724,7 +721,6 @@ LOOKUP xfree86LookupTab[] = {
|
||||||
SYMFUNC(xf86scanpci)
|
SYMFUNC(xf86scanpci)
|
||||||
|
|
||||||
/* Loader functions */
|
/* Loader functions */
|
||||||
SYMFUNC(LoaderDefaultFunc)
|
|
||||||
SYMFUNC(LoadSubModule)
|
SYMFUNC(LoadSubModule)
|
||||||
SYMFUNC(DuplicateModule)
|
SYMFUNC(DuplicateModule)
|
||||||
SYMFUNC(LoaderErrorMsg)
|
SYMFUNC(LoaderErrorMsg)
|
||||||
|
@ -1156,6 +1152,4 @@ LOOKUP xfree86LookupTab[] = {
|
||||||
|
|
||||||
/* Pci.c */
|
/* Pci.c */
|
||||||
SYMVAR(pciNumBuses)
|
SYMVAR(pciNumBuses)
|
||||||
|
|
||||||
{0, 0}
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -67,6 +67,9 @@ SOFTWARE.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#define XSERV_t
|
||||||
|
#define TRANS_SERVER
|
||||||
|
#define TRANS_REOPEN
|
||||||
#include <X11/Xtrans/Xtrans.h>
|
#include <X11/Xtrans/Xtrans.h>
|
||||||
#include <X11/Xauth.h>
|
#include <X11/Xauth.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
|
|
@ -148,7 +148,7 @@ extern __const__ int _nfiles;
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#ifdef XAPPGROUP
|
#ifdef XAPPGROUP
|
||||||
#include <X11/extensions/Xagsrv.h>
|
#include "appgroup.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
#include "securitysrv.h"
|
#include "securitysrv.h"
|
||||||
|
|
3
os/io.c
3
os/io.c
|
@ -66,6 +66,9 @@ SOFTWARE.
|
||||||
#include <X11/Xwinsock.h>
|
#include <X11/Xwinsock.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#define XSERV_t
|
||||||
|
#define TRANS_SERVER
|
||||||
|
#define TRANS_REOPEN
|
||||||
#include <X11/Xtrans/Xtrans.h>
|
#include <X11/Xtrans/Xtrans.h>
|
||||||
#include <X11/Xmd.h>
|
#include <X11/Xmd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -68,6 +68,9 @@ OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
#define XSERV_t
|
||||||
|
#define TRANS_SERVER
|
||||||
|
#define TRANS_REOPEN
|
||||||
#include <X11/Xtrans/Xtrans.h>
|
#include <X11/Xtrans/Xtrans.h>
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "dixfont.h"
|
#include "dixfont.h"
|
||||||
|
|
|
@ -41,6 +41,9 @@ from The Open Group.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
#define XSERV_t
|
||||||
|
#define TRANS_SERVER
|
||||||
|
#define TRANS_REOPEN
|
||||||
#include <X11/Xtrans/Xtrans.h>
|
#include <X11/Xtrans/Xtrans.h>
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "osdep.h"
|
#include "osdep.h"
|
||||||
|
@ -153,9 +156,9 @@ XdmAuthenticationInit (char *cookie, int cookie_len)
|
||||||
XdmcpRegisterAuthentication (XdmAuthenticationName, XdmAuthenticationNameLen,
|
XdmcpRegisterAuthentication (XdmAuthenticationName, XdmAuthenticationNameLen,
|
||||||
(unsigned char *)&rho,
|
(unsigned char *)&rho,
|
||||||
sizeof (rho),
|
sizeof (rho),
|
||||||
XdmAuthenticationValidator,
|
(ValidatorFunc)XdmAuthenticationValidator,
|
||||||
XdmAuthenticationGenerator,
|
(GeneratorFunc)XdmAuthenticationGenerator,
|
||||||
XdmAuthenticationAddAuth);
|
(AddAuthorFunc)XdmAuthenticationAddAuth);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* XDMCP */
|
#endif /* XDMCP */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user