[PATCH 15/31] XFree86: DRI: _X_UNEXPORT

Daniel Stone daniel at fooishbar.org
Fri Dec 2 03:31:21 PST 2011


Remove _X_EXPORT tags from functions not used by any drivers.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 hw/xfree86/dri/dri.h |   54 ++++++++++++++++++++++++-------------------------
 1 files changed, 26 insertions(+), 28 deletions(-)

diff --git a/hw/xfree86/dri/dri.h b/hw/xfree86/dri/dri.h
index 84d23ac..04d2c7d 100644
--- a/hw/xfree86/dri/dri.h
+++ b/hw/xfree86/dri/dri.h
@@ -209,7 +209,7 @@ extern _X_EXPORT Bool DRIScreenInit(ScreenPtr pScreen,
 
 extern _X_EXPORT void DRICloseScreen(ScreenPtr pScreen);
 
-extern _X_EXPORT void DRIReset(void);
+extern void DRIReset(void);
 
 extern _X_EXPORT Bool DRIQueryDirectRenderingCapable(ScreenPtr pScreen,
                                            Bool *isCapable);
@@ -235,7 +235,7 @@ extern _X_EXPORT Bool DRICreateContext(ScreenPtr pScreen,
 
 extern _X_EXPORT Bool DRIDestroyContext(ScreenPtr pScreen, XID context);
 
-extern _X_EXPORT Bool DRIContextPrivDelete(pointer pResource, XID id);
+extern Bool DRIContextPrivDelete(pointer pResource, XID id);
 
 extern _X_EXPORT Bool DRICreateDrawable(ScreenPtr pScreen,
                               ClientPtr client,
@@ -246,7 +246,7 @@ extern _X_EXPORT Bool DRIDestroyDrawable(ScreenPtr pScreen,
 			       ClientPtr client,
                                DrawablePtr pDrawable);
 
-extern _X_EXPORT Bool DRIDrawablePrivDelete(pointer pResource,
+extern Bool DRIDrawablePrivDelete(pointer pResource,
                                   XID id);
 
 extern _X_EXPORT Bool DRIGetDrawableInfo(ScreenPtr pScreen,
@@ -286,68 +286,66 @@ extern _X_EXPORT void DRIBlockHandler(pointer blockData,
                             OSTimePtr pTimeout,
                             pointer pReadmask);
 
-extern _X_EXPORT void DRIDoWakeupHandler(int screenNum,
+extern void DRIDoWakeupHandler(int screenNum,
                                pointer wakeupData,
                                unsigned long result,
                                pointer pReadmask);
 
-extern _X_EXPORT void DRIDoBlockHandler(int screenNum,
+extern void DRIDoBlockHandler(int screenNum,
                               pointer blockData,
                               pointer pTimeout,
                               pointer pReadmask);
 
-extern _X_EXPORT void DRISwapContext(int drmFD,
+extern void DRISwapContext(int drmFD,
                            void *oldctx,
                            void *newctx);
 
-extern _X_EXPORT void *DRIGetContextStore(DRIContextPrivPtr context);
+extern void *DRIGetContextStore(DRIContextPrivPtr context);
 
-extern _X_EXPORT void DRIWindowExposures(WindowPtr pWin,
-                              RegionPtr prgn,
-                              RegionPtr bsreg);
+extern void DRIWindowExposures(WindowPtr pWin,
+                               RegionPtr prgn,
+                               RegionPtr bsreg);
 
-extern _X_EXPORT Bool DRIDestroyWindow(WindowPtr pWin);
+extern Bool DRIDestroyWindow(WindowPtr pWin);
 
-extern _X_EXPORT void DRICopyWindow(WindowPtr pWin,
+extern void DRICopyWindow(WindowPtr pWin,
                           DDXPointRec ptOldOrg,
                           RegionPtr prgnSrc);
 
-extern _X_EXPORT int DRIValidateTree(WindowPtr pParent,
+extern int DRIValidateTree(WindowPtr pParent,
                            WindowPtr pChild,
                            VTKind    kind);
 
-extern _X_EXPORT void DRIPostValidateTree(WindowPtr pParent,
+extern void DRIPostValidateTree(WindowPtr pParent,
                                 WindowPtr pChild,
                                 VTKind    kind);
 
-extern _X_EXPORT void DRIClipNotify(WindowPtr pWin,
-                          int dx,
-                          int dy);
+extern void DRIClipNotify(WindowPtr pWin, int dx, int dy);
 
 extern _X_EXPORT CARD32 DRIGetDrawableIndex(WindowPtr pWin);
 
-extern _X_EXPORT void DRIPrintDrawableLock(ScreenPtr pScreen, char *msg);
+extern void DRIPrintDrawableLock(ScreenPtr pScreen, char *msg);
 
 extern _X_EXPORT void DRILock(ScreenPtr pScreen, int flags);
 
 extern _X_EXPORT void DRIUnlock(ScreenPtr pScreen);
 
-extern _X_EXPORT DRIWrappedFuncsRec *DRIGetWrappedFuncs(ScreenPtr pScreen);
+extern DRIWrappedFuncsRec *DRIGetWrappedFuncs(ScreenPtr pScreen);
 
 extern _X_EXPORT void *DRIGetSAREAPrivate(ScreenPtr pScreen);
 
-extern _X_EXPORT unsigned int DRIGetDrawableStamp(ScreenPtr pScreen,
+extern unsigned int DRIGetDrawableStamp(ScreenPtr pScreen,
                                         CARD32 drawable_index);
 
-extern _X_EXPORT DRIContextPrivPtr DRICreateContextPriv(ScreenPtr pScreen,
+extern DRIContextPrivPtr DRICreateContextPriv(ScreenPtr pScreen,
                                               drm_context_t * pHWContext,
                                               DRIContextFlags flags);
 
-extern _X_EXPORT DRIContextPrivPtr DRICreateContextPrivFromHandle(ScreenPtr pScreen,
+extern DRIContextPrivPtr DRICreateContextPrivFromHandle(ScreenPtr pScreen,
                                                         drm_context_t hHWContext,
                                                         DRIContextFlags flags);
 
-extern _X_EXPORT Bool DRIDestroyContextPriv(DRIContextPrivPtr pDRIContextPriv);
+extern Bool DRIDestroyContextPriv(DRIContextPrivPtr pDRIContextPriv);
 
 extern _X_EXPORT drm_context_t DRIGetContext(ScreenPtr pScreen);
 
@@ -355,7 +353,7 @@ extern _X_EXPORT void DRIQueryVersion(int *majorVersion,
                             int *minorVersion,
                             int *patchVersion);
 
-extern _X_EXPORT void DRIAdjustFrame(int scrnIndex, int x, int y, int flags);
+extern void DRIAdjustFrame(int scrnIndex, int x, int y, int flags);
 
 extern _X_EXPORT void DRIMoveBuffersHelper(ScreenPtr pScreen,
                                  int dx,
@@ -366,13 +364,13 @@ extern _X_EXPORT void DRIMoveBuffersHelper(ScreenPtr pScreen,
 
 extern _X_EXPORT char *DRICreatePCIBusID(const struct pci_device *PciInfo);
 
-extern _X_EXPORT int drmInstallSIGIOHandler(int fd, void (*f)(int, void *, void *));
-extern _X_EXPORT int drmRemoveSIGIOHandler(int fd);
+extern int drmInstallSIGIOHandler(int fd, void (*f)(int, void *, void *));
+extern int drmRemoveSIGIOHandler(int fd);
 extern _X_EXPORT int DRIMasterFD(ScrnInfoPtr pScrn);
 
-extern _X_EXPORT void *DRIMasterSareaPointer(ScrnInfoPtr pScrn);
+extern void *DRIMasterSareaPointer(ScrnInfoPtr pScrn);
 
-extern _X_EXPORT drm_handle_t DRIMasterSareaHandle(ScrnInfoPtr pScrn);
+extern drm_handle_t DRIMasterSareaHandle(ScrnInfoPtr pScrn);
 
 extern _X_EXPORT void DRIGetTexOffsetFuncs(ScreenPtr pScreen,
 				 DRITexOffsetStartProcPtr *texOffsetStartFunc,
-- 
1.7.7.3



More information about the xorg-devel mailing list