[PATCH 12/31] XFree86: RandR: _X_UNEXPORT

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


Remove useless _X_EXPORT tags from functions which are not supposed to
be exported to drivers.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 hw/xfree86/modes/xf86Crtc.h    |   20 ++++++++++----------
 hw/xfree86/modes/xf86Modes.h   |   22 +++++++++++-----------
 hw/xfree86/modes/xf86RandR12.h |   18 +++++++++---------
 3 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/hw/xfree86/modes/xf86Crtc.h b/hw/xfree86/modes/xf86Crtc.h
index 8d4a089..d5bce36 100644
--- a/hw/xfree86/modes/xf86Crtc.h
+++ b/hw/xfree86/modes/xf86Crtc.h
@@ -778,7 +778,7 @@ xf86CrtcRotate (xf86CrtcPtr crtc);
  * Clean up any rotation data, used when a crtc is turned off
  * as well as when rotation is disabled.
  */
-extern _X_EXPORT void
+extern void
 xf86RotateDestroy (xf86CrtcPtr crtc);
 
 /*
@@ -790,13 +790,13 @@ xf86RotateFreeShadow(ScrnInfoPtr pScrn);
 /*
  * Clean up rotation during CloseScreen
  */
-extern _X_EXPORT void
+extern void
 xf86RotateCloseScreen (ScreenPtr pScreen);
 
 /**
  * Return whether any output is assigned to the crtc
  */
-extern _X_EXPORT Bool
+extern Bool
 xf86CrtcInUse (xf86CrtcPtr crtc);
 
 /*
@@ -819,7 +819,7 @@ xf86OutputDestroy (xf86OutputPtr	output);
 extern _X_EXPORT void
 xf86ProbeOutputModes (ScrnInfoPtr pScrn, int maxX, int maxY);
 
-extern _X_EXPORT void
+extern void
 xf86SetScrnInfoModes (ScrnInfoPtr pScrn);
 
 #ifdef RANDR_13_INTERFACE
@@ -840,10 +840,10 @@ xf86DPMSSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags);
 extern _X_EXPORT Bool
 xf86SaveScreen(ScreenPtr pScreen, int mode);
 
-extern _X_EXPORT void
+extern void
 xf86DisableUnusedFunctions(ScrnInfoPtr pScrn);
 
-extern _X_EXPORT DisplayModePtr
+extern DisplayModePtr
 xf86OutputFindClosestMode (xf86OutputPtr output, DisplayModePtr desired);
     
 extern _X_EXPORT Bool
@@ -977,20 +977,20 @@ xf86_crtc_clip_video_helper(ScrnInfoPtr pScrn,
 			    INT32	height);
 #endif
     
-extern _X_EXPORT xf86_crtc_notify_proc_ptr
+extern xf86_crtc_notify_proc_ptr
 xf86_wrap_crtc_notify (ScreenPtr pScreen, xf86_crtc_notify_proc_ptr new);
 
-extern _X_EXPORT void
+extern void
 xf86_unwrap_crtc_notify(ScreenPtr pScreen, xf86_crtc_notify_proc_ptr old);
 
-extern _X_EXPORT void
+extern void
 xf86_crtc_notify(ScreenPtr pScreen);
 
 /**
  * Gamma
  */
 
-extern _X_EXPORT Bool
+extern Bool
 xf86_crtc_supports_gamma(ScrnInfoPtr pScrn);
 
 #endif /* _XF86CRTC_H_ */
diff --git a/hw/xfree86/modes/xf86Modes.h b/hw/xfree86/modes/xf86Modes.h
index c72a935..7c7545d 100644
--- a/hw/xfree86/modes/xf86Modes.h
+++ b/hw/xfree86/modes/xf86Modes.h
@@ -60,7 +60,7 @@ extern _X_EXPORT Bool xf86ModesEqual(const DisplayModeRec *pMode1,
 extern _X_EXPORT void xf86PrintModeline(int scrnIndex,DisplayModePtr mode);
 extern _X_EXPORT DisplayModePtr xf86ModesAdd(DisplayModePtr modes, DisplayModePtr new);
 
-extern _X_EXPORT DisplayModePtr xf86DDCGetModes(int scrnIndex, xf86MonPtr DDC);
+extern DisplayModePtr xf86DDCGetModes(int scrnIndex, xf86MonPtr DDC);
 extern _X_EXPORT DisplayModePtr xf86CVTMode(int HDisplay, int VDisplay, float VRefresh,
 			   Bool Reduced, Bool Interlaced);
 extern _X_EXPORT DisplayModePtr xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins);
@@ -68,11 +68,11 @@ extern _X_EXPORT DisplayModePtr xf86GTFMode(int h_pixels, int v_lines, float fre
 extern _X_EXPORT Bool
 xf86ModeIsReduced(const DisplayModeRec *mode);
 
-extern _X_EXPORT void
+extern void
 xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
 		       int flags);
 
-extern _X_EXPORT void
+extern void
 xf86ValidateModesClocks(ScrnInfoPtr pScrn, DisplayModePtr modeList,
 			int *min, int *max, int n_ranges);
 
@@ -80,38 +80,38 @@ extern _X_EXPORT void
 xf86ValidateModesSize(ScrnInfoPtr pScrn, DisplayModePtr modeList,
 		      int maxX, int maxY, int maxPitch);
 
-extern _X_EXPORT void
+extern void
 xf86ValidateModesSync(ScrnInfoPtr pScrn, DisplayModePtr modeList,
 		      MonPtr mon);
 
-extern _X_EXPORT void
+extern void
 xf86ValidateModesBandwidth(ScrnInfoPtr pScrn, DisplayModePtr modeList,
 			   unsigned int bandwidth, int depth);
 
-extern _X_EXPORT void
+extern void
 xf86ValidateModesReducedBlanking(ScrnInfoPtr pScrn, DisplayModePtr modeList);
 
 extern _X_EXPORT void
 xf86PruneInvalidModes(ScrnInfoPtr pScrn, DisplayModePtr *modeList,
 		      Bool verbose);
 
-extern _X_EXPORT DisplayModePtr
+extern DisplayModePtr
 xf86PruneDuplicateModes(DisplayModePtr modes);
 
-extern _X_EXPORT void
+extern void
 xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
 		       int flags);
 
-extern _X_EXPORT void
+extern void
 xf86ValidateModesUserConfig(ScrnInfoPtr pScrn, DisplayModePtr modeList);
 
-extern _X_EXPORT DisplayModePtr
+extern DisplayModePtr
 xf86GetMonitorModes (ScrnInfoPtr pScrn, XF86ConfMonitorPtr conf_monitor);
 
 extern _X_EXPORT DisplayModePtr
 xf86GetDefaultModes (void);
 
-extern _X_EXPORT void
+extern void
 xf86DDCApplyQuirks(int scrnIndex, xf86MonPtr DDC);
 
 #endif /* _XF86MODES_H_ */
diff --git a/hw/xfree86/modes/xf86RandR12.h b/hw/xfree86/modes/xf86RandR12.h
index 0c586be..88a84b0 100644
--- a/hw/xfree86/modes/xf86RandR12.h
+++ b/hw/xfree86/modes/xf86RandR12.h
@@ -28,16 +28,16 @@
 #include "xf86Rename.h"
 #endif
 
-extern _X_EXPORT Bool xf86RandR12CreateScreenResources (ScreenPtr pScreen);
-extern _X_EXPORT Bool xf86RandR12Init(ScreenPtr pScreen);
-extern _X_EXPORT void xf86RandR12CloseScreen(ScreenPtr pScreen);
-extern _X_EXPORT void xf86RandR12SetRotations (ScreenPtr pScreen, Rotation rotation);
-extern _X_EXPORT void xf86RandR12SetTransformSupport (ScreenPtr pScreen, Bool transforms);
-extern _X_EXPORT Bool xf86RandR12SetConfig(ScreenPtr pScreen, Rotation rotation, int rate,
+extern Bool xf86RandR12CreateScreenResources (ScreenPtr pScreen);
+extern Bool xf86RandR12Init(ScreenPtr pScreen);
+extern void xf86RandR12CloseScreen(ScreenPtr pScreen);
+extern void xf86RandR12SetRotations (ScreenPtr pScreen, Rotation rotation);
+extern void xf86RandR12SetTransformSupport (ScreenPtr pScreen, Bool transforms);
+extern Bool xf86RandR12SetConfig(ScreenPtr pScreen, Rotation rotation, int rate,
 			RRScreenSizePtr pSize);
-extern _X_EXPORT Rotation xf86RandR12GetRotation(ScreenPtr pScreen);
-extern _X_EXPORT void xf86RandR12GetOriginalVirtualSize(ScrnInfoPtr pScrn, int *x, int *y);
+extern Rotation xf86RandR12GetRotation(ScreenPtr pScreen);
+extern void xf86RandR12GetOriginalVirtualSize(ScrnInfoPtr pScrn, int *x, int *y);
 extern _X_EXPORT Bool xf86RandR12PreInit (ScrnInfoPtr pScrn);
-extern _X_EXPORT void xf86RandR12TellChanged (ScreenPtr pScreen);
+extern void xf86RandR12TellChanged (ScreenPtr pScreen);
 
 #endif /* _XF86_RANDR_H_ */
-- 
1.7.7.3



More information about the xorg-devel mailing list