From d6cbd4511e35a89a0353f11834c6fdb8d4d2189f Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Sat, 29 Nov 2008 23:56:06 -0200 Subject: Export symbols defined in the sdk. This is the biggest "visibility" patch. Instead of doing a "export" symbol on demand, export everything in the sdk, so that if some module fails due to an unresolved symbol, it is because it is using a symbol not in the sdk. Most exported symbols shouldn't really be made visible, neither advertised in the sdk, as they are only used by a single shared object. Symbols in the sdk (or referenced in sdk macros), but not defined anywhere include: XkbBuildCoreState() XkbInitialMap XkbXIUnsupported XkbCheckActionVMods() XkbSendCompatNotify() XkbDDXFakePointerButton() XkbDDXApplyConfig() _XkbStrCaseCmp() _XkbErrMessages[] _XkbErrCode _XkbErrLocation _XkbErrData XkbAccessXDetailText() XkbNKNDetailMaskText() XkbLookupGroupAndLevel() XkbInitAtoms() XkbGetOrderedDrawables() XkbFreeOrderedDrawables() XkbConvertXkbComponents() XkbWriteXKBSemantics() XkbWriteXKBLayout() XkbWriteXKBKeymap() XkbWriteXKBFile() XkbWriteCFile() XkbWriteXKMFile() XkbWriteToServer() XkbMergeFile() XkmFindTOCEntry() XkmReadFileSection() XkmReadFileSectionName() InitExtInput() xf86CheckButton() xf86SwitchCoreDevice() RamDacSetGamma() RamDacRestoreDACValues() xf86Bpp xf86ConfigPix24 xf86MouseCflags[] xf86SupportedMouseTypes[] xf86NumMouseTypes xf86ChangeBusIndex() xf86EntityEnter() xf86EntityLeave() xf86WrapperInit() xf86RingBell() xf86findOptionBoolean() xf86debugListOptions() LoadSubModuleLocal() LoaderSymbolLocal() getInt10Rec() xf86CurrentScreen xf86ReallocatePciResources() xf86NewSerialNumber() xf86RandRSetInitialMode() fbCompositeSolidMask_nx1xn fbCompositeSolidMask_nx8888x0565C fbCompositeSolidMask_nx8888x8888C fbCompositeSolidMask_nx8x0565 fbCompositeSolidMask_nx8x0888 fbCompositeSolidMask_nx8x8888 fbCompositeSrc_0565x0565 fbCompositeSrc_8888x0565 fbCompositeSrc_8888x0888 fbCompositeSrc_8888x8888 fbCompositeSrcAdd_1000x1000 fbCompositeSrcAdd_8000x8000 fbCompositeSrcAdd_8888x8888 fbGeneration fbIn fbOver fbOver24 fbOverlayGeneration fbRasterizeEdges fbRestoreAreas fbSaveAreas composeFunctions VBEBuildVbeModeList() VBECalcVbeModeIndex() TIramdac3030CalculateMNPForClock() shadowBufPtr shadowFindBuf() miRRGetScreenInfo() RRSetScreenConfig() RRModePruneUnused() PixmanImageFromPicture() extern int miPointerGetMotionEvents() miClipPicture() miRasterizeTriangle() fbPush1toN() fbInitializeBackingStore() ddxBeforeReset() SetupSprite() InitSprite() DGADeliverEvent() SPECIAL CASES o defined as _X_INTERNAL xf86NewInputDevice() o defined as static fbGCPrivateKey fbOverlayScreenPrivateKey fbScreenPrivateKey fbWinPrivateKey o defined in libXfont.so, but declared in xorg/dixfont.h GetGlyphs() QueryGlyphExtents() QueryTextExtents() ParseGlyphCachingMode() InitGlyphCaching() SetGlyphCachingMode() --- miext/damage/damage.c | 16 ++++++++-------- miext/shadow/shadow.c | 10 +++++----- miext/shadow/shalloc.c | 2 +- miext/shadow/shpacked.c | 7 +++++-- miext/shadow/shplanar.c | 6 +++--- miext/shadow/shplanar8.c | 2 +- miext/shadow/shrotate.c | 4 ++-- 7 files changed, 25 insertions(+), 22 deletions(-) (limited to 'miext') diff --git a/miext/damage/damage.c b/miext/damage/damage.c index fa2f27997..74d87e37c 100644 --- a/miext/damage/damage.c +++ b/miext/damage/damage.c @@ -1859,7 +1859,7 @@ damageCloseScreen (int i, ScreenPtr pScreen) * Public functions for consumption outside this file. */ -Bool +_X_EXPORT Bool DamageSetup (ScreenPtr pScreen) { DamageScrPrivPtr pScrPriv; @@ -1898,7 +1898,7 @@ DamageSetup (ScreenPtr pScreen) return TRUE; } -DamagePtr +_X_EXPORT DamagePtr DamageCreate (DamageReportFunc damageReport, DamageDestroyFunc damageDestroy, DamageReportLevel damageLevel, @@ -1930,7 +1930,7 @@ DamageCreate (DamageReportFunc damageReport, return pDamage; } -void +_X_EXPORT void DamageRegister (DrawablePtr pDrawable, DamagePtr pDamage) { @@ -1958,7 +1958,7 @@ DamageRegister (DrawablePtr pDrawable, damageInsertDamage (getDrawableDamageRef (pDrawable), pDamage); } -void +_X_EXPORT void DamageDrawInternal (ScreenPtr pScreen, Bool enable) { damageScrPriv (pScreen); @@ -1966,7 +1966,7 @@ DamageDrawInternal (ScreenPtr pScreen, Bool enable) pScrPriv->internalLevel += enable ? 1 : -1; } -void +_X_EXPORT void DamageUnregister (DrawablePtr pDrawable, DamagePtr pDamage) { @@ -2001,7 +2001,7 @@ DamageUnregister (DrawablePtr pDrawable, damageRemoveDamage (getDrawableDamageRef (pDrawable), pDamage); } -void +_X_EXPORT void DamageDestroy (DamagePtr pDamage) { if (pDamage->damageDestroy) @@ -2011,7 +2011,7 @@ DamageDestroy (DamagePtr pDamage) xfree (pDamage); } -Bool +_X_EXPORT Bool DamageSubtract (DamagePtr pDamage, const RegionPtr pRegion) { @@ -2044,7 +2044,7 @@ DamageSubtract (DamagePtr pDamage, return REGION_NOTEMPTY (pDrawable->pScreen, &pDamage->damage); } -void +_X_EXPORT void DamageEmpty (DamagePtr pDamage) { REGION_EMPTY (pDamage->pDrawable->pScreen, &pDamage->damage); diff --git a/miext/shadow/shadow.c b/miext/shadow/shadow.c index 21f1de2d5..a18a42089 100644 --- a/miext/shadow/shadow.c +++ b/miext/shadow/shadow.c @@ -37,7 +37,7 @@ #include "shadow.h" static int shadowScrPrivateKeyIndex; -DevPrivateKey shadowScrPrivateKey = &shadowScrPrivateKeyIndex; +_X_EXPORT DevPrivateKey shadowScrPrivateKey = &shadowScrPrivateKeyIndex; #define wrap(priv, real, mem) {\ priv->mem = real->mem; \ @@ -131,7 +131,7 @@ shadowReportFunc(DamagePtr pDamage, RegionPtr pRegion, void *closure) } #endif -Bool +_X_EXPORT Bool shadowSetup(ScreenPtr pScreen) { shadowBufPtr pBuf; @@ -173,7 +173,7 @@ shadowSetup(ScreenPtr pScreen) return TRUE; } -Bool +_X_EXPORT Bool shadowAdd(ScreenPtr pScreen, PixmapPtr pPixmap, ShadowUpdateProc update, ShadowWindowProc window, int randr, void *closure) { @@ -210,7 +210,7 @@ shadowAdd(ScreenPtr pScreen, PixmapPtr pPixmap, ShadowUpdateProc update, return TRUE; } -void +_X_EXPORT void shadowRemove(ScreenPtr pScreen, PixmapPtr pPixmap) { shadowBuf(pScreen); @@ -228,7 +228,7 @@ shadowRemove(ScreenPtr pScreen, PixmapPtr pPixmap) (pointer) pScreen); } -Bool +_X_EXPORT Bool shadowInit(ScreenPtr pScreen, ShadowUpdateProc update, ShadowWindowProc window) { PixmapPtr pPixmap; diff --git a/miext/shadow/shalloc.c b/miext/shadow/shalloc.c index 72aa28b14..5aefb7d39 100644 --- a/miext/shadow/shalloc.c +++ b/miext/shadow/shalloc.c @@ -37,7 +37,7 @@ #include "gcstruct.h" #include "shadow.h" -void * +_X_EXPORT void * shadowAlloc (int width, int height, int bpp) { int stride; diff --git a/miext/shadow/shpacked.c b/miext/shadow/shpacked.c index 678f8c629..f4717ff68 100644 --- a/miext/shadow/shpacked.c +++ b/miext/shadow/shpacked.c @@ -40,7 +40,7 @@ #include "shadow.h" #include "fb.h" -void +_X_EXPORT void shadowUpdatePacked (ScreenPtr pScreen, shadowBufPtr pBuf) { @@ -112,4 +112,7 @@ shadowUpdatePacked (ScreenPtr pScreen, } } -shadowUpdateProc shadowUpdatePackedWeak(void) { return shadowUpdatePacked; } +_X_EXPORT shadowUpdateProc +shadowUpdatePackedWeak(void) { + return shadowUpdatePacked; +} diff --git a/miext/shadow/shplanar.c b/miext/shadow/shplanar.c index b5983dc73..5fc86ee6b 100644 --- a/miext/shadow/shplanar.c +++ b/miext/shadow/shplanar.c @@ -86,7 +86,7 @@ } #endif -void +_X_EXPORT void shadowUpdatePlanar4 (ScreenPtr pScreen, shadowBufPtr pBuf) { @@ -171,10 +171,10 @@ shadowUpdatePlanar4 (ScreenPtr pScreen, } } -shadowUpdateProc shadowUpdatePlanar4Weak(void) { +_X_EXPORT shadowUpdateProc shadowUpdatePlanar4Weak(void) { return shadowUpdatePlanar4; } -shadowUpdateProc shadowUpdatePlanar4x8Weak(void) { +_X_EXPORT shadowUpdateProc shadowUpdatePlanar4x8Weak(void) { return shadowUpdatePlanar4x8; } diff --git a/miext/shadow/shplanar8.c b/miext/shadow/shplanar8.c index 6d8defa58..a4a392b8c 100644 --- a/miext/shadow/shplanar8.c +++ b/miext/shadow/shplanar8.c @@ -89,7 +89,7 @@ } #endif -void +_X_EXPORT void shadowUpdatePlanar4x8 (ScreenPtr pScreen, shadowBufPtr pBuf) { diff --git a/miext/shadow/shrotate.c b/miext/shadow/shrotate.c index 673cd76b5..fd159154d 100644 --- a/miext/shadow/shrotate.c +++ b/miext/shadow/shrotate.c @@ -48,7 +48,7 @@ #define TOP_TO_BOTTOM 2 #define BOTTOM_TO_TOP -2 -void +_X_EXPORT void shadowUpdateRotatePacked (ScreenPtr pScreen, shadowBufPtr pBuf) { @@ -308,6 +308,6 @@ shadowUpdateRotatePacked (ScreenPtr pScreen, } } -shadowUpdateProc shadowUpdateRotatePackedWeak(void) { +_X_EXPORT shadowUpdateProc shadowUpdateRotatePackedWeak(void) { return shadowUpdateRotatePacked; } -- cgit v1.2.3