diff options
author | Keith Packard <keithp@guitar.keithp.com> | 2007-02-14 14:37:02 -0800 |
---|---|---|
committer | Keith Packard <keithp@guitar.keithp.com> | 2007-02-14 14:37:02 -0800 |
commit | ec55dd16c4c5f7612d33ae22a6249b3b1c60e2b6 (patch) | |
tree | b3281f4ab52353ebbe8792161e7df93d7b00c1cc /src | |
parent | 22a271555a46267c40448fa926d45692498ef7c6 (diff) |
Global namespace cleanups, filename fixes.
Ensure all xf86 symbols created here are protected with XF86NAME.
Remove accidentally exported symbols from namespace.
Make all to-be-DI files prefixed with i830_xf86.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 20 | ||||
-rw-r--r-- | src/i830.h | 2 | ||||
-rw-r--r-- | src/i830_tv.c | 2 | ||||
-rw-r--r-- | src/i830_xf86Crtc.c | 10 | ||||
-rw-r--r-- | src/i830_xf86EdidModes.c (renamed from src/i830_edid_modes.c) | 0 | ||||
-rw-r--r-- | src/i830_xf86RandR12.c (renamed from src/i830_randr.c) | 2 | ||||
-rw-r--r-- | src/i830_xf86RandR12.h (renamed from src/i830_randr.h) | 0 | ||||
-rw-r--r-- | src/i830_xf86Rename.h | 9 | ||||
-rw-r--r-- | src/i830_xf86Rotate.c | 2 |
9 files changed, 28 insertions, 19 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index a94e14c8..982a959d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -63,7 +63,6 @@ intel_drv_la_SOURCES = \ i830_display.h \ i830_driver.c \ i830_dvo.c \ - i830_edid_modes.c \ i830.h \ i830_i2c.c \ i830_io.c \ @@ -73,18 +72,10 @@ intel_drv_la_SOURCES = \ i830_video.c \ i830_video.h \ i830_reg.h \ - i830_randr.c \ i830_sdvo.c \ i830_sdvo.h \ i830_sdvo_regs.h \ i830_tv.c \ - i830_xf86Modes.h \ - i830_xf86Modes.c \ - i830_xf86cvt.c \ - i830_xf86Crtc.h \ - i830_xf86Crtc.c \ - i830_xf86Rotate.c \ - i830_xf86DiDGA.c \ i915_3d.c \ i915_3d.h \ i915_reg.h \ @@ -99,7 +90,16 @@ intel_drv_la_SOURCES = \ local_xf86Rename.h \ xf86Parser.h \ xf86Optrec.h \ - i830_randr.h + i830_xf86Modes.h \ + i830_xf86Modes.c \ + i830_xf86cvt.c \ + i830_xf86Crtc.h \ + i830_xf86Crtc.c \ + i830_xf86EdidModes.c \ + i830_xf86RandR12.c \ + i830_xf86RandR12.h \ + i830_xf86Rotate.c \ + i830_xf86DiDGA.c EXTRA_DIST = \ packed_yuv_sf.g4a \ @@ -59,7 +59,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "vbe.h" #include "vgaHW.h" #include "i830_xf86Crtc.h" -#include "i830_randr.h" +#include "i830_xf86RandR12.h" #ifdef XF86DRI #include "xf86drm.h" diff --git a/src/i830_tv.c b/src/i830_tv.c index 5ee8866a..95612e41 100644 --- a/src/i830_tv.c +++ b/src/i830_tv.c @@ -1310,7 +1310,7 @@ i830_tv_detect(xf86OutputPtr output) } } -struct input_res { +static struct input_res { char *name; int w, h; } input_res_table[] = diff --git a/src/i830_xf86Crtc.c b/src/i830_xf86Crtc.c index 0ea0cedd..db05abab 100644 --- a/src/i830_xf86Crtc.c +++ b/src/i830_xf86Crtc.c @@ -33,7 +33,7 @@ /*#include "i830.h" */ #include "i830_xf86Crtc.h" #include "i830_xf86Modes.h" -#include "i830_randr.h" +#include "i830_xf86RandR12.h" #include "X11/extensions/render.h" #define DPMS_SERVER #include "X11/extensions/dpms.h" @@ -886,7 +886,7 @@ xf86PruneDuplicateMonitorModes (MonPtr Monitor) /** Return - 0 + if a should be earlier, same or later than b in list */ static int -i830xf86ModeCompare (DisplayModePtr a, DisplayModePtr b) +xf86ModeCompare (DisplayModePtr a, DisplayModePtr b) { int diff; @@ -904,7 +904,7 @@ i830xf86ModeCompare (DisplayModePtr a, DisplayModePtr b) * Insertion sort input in-place and return the resulting head */ static DisplayModePtr -i830xf86SortModes (DisplayModePtr input) +xf86SortModes (DisplayModePtr input) { DisplayModePtr output = NULL, i, o, n, *op, prev; @@ -914,7 +914,7 @@ i830xf86SortModes (DisplayModePtr input) i = input; input = input->next; for (op = &output; (o = *op); op = &o->next) - if (i830xf86ModeCompare (o, i) > 0) + if (xf86ModeCompare (o, i) > 0) break; i->next = *op; *op = i; @@ -1109,7 +1109,7 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY) xf86PruneInvalidModes(scrn, &output->probed_modes, TRUE); - output->probed_modes = i830xf86SortModes (output->probed_modes); + output->probed_modes = xf86SortModes (output->probed_modes); /* Check for a configured preference for a particular mode */ preferred_mode = xf86GetOptValString (output->options, diff --git a/src/i830_edid_modes.c b/src/i830_xf86EdidModes.c index 866b9bef..866b9bef 100644 --- a/src/i830_edid_modes.c +++ b/src/i830_xf86EdidModes.c diff --git a/src/i830_randr.c b/src/i830_xf86RandR12.c index b9cc9aa8..4ccbdad1 100644 --- a/src/i830_randr.c +++ b/src/i830_xf86RandR12.c @@ -40,7 +40,7 @@ #include <X11/extensions/render.h> #include "i830_xf86Crtc.h" -#include "i830_randr.h" +#include "i830_xf86RandR12.h" typedef struct _xf86RandR12Info { int virtualX; diff --git a/src/i830_randr.h b/src/i830_xf86RandR12.h index 8a4668b4..8a4668b4 100644 --- a/src/i830_randr.h +++ b/src/i830_xf86RandR12.h diff --git a/src/i830_xf86Rename.h b/src/i830_xf86Rename.h index de2eb9a5..a00253d5 100644 --- a/src/i830_xf86Rename.h +++ b/src/i830_xf86Rename.h @@ -64,5 +64,14 @@ #define xf86ValidateModesUserConfig XF86NAME(xf86ValidateModesUserConfig) #define xf86DiDGAInit XF86NAME(xf86DiDGAInit) #define xf86DiDGAReInit XF86NAME(xf86DiDGAReInit) +#define xf86DDCGetModes XF86NAME(xf86DDCGetModes) +#define xf86RandR12CreateScreenResources XF86NAME(xf86RandR12CreateScreenResources) +#define xf86RandR12GetOriginalVirtualSize XF86NAME(xf86RandR12GetOriginalVirtualSize) +#define xf86RandR12GetRotation XF86NAME(xf86RandR12GetRotation) +#define xf86RandR12Init XF86NAME(xf86RandR12Init) +#define xf86RandR12PreInit XF86NAME(xf86RandR12PreInit) +#define xf86RandR12SetConfig XF86NAME(xf86RandR12SetConfig) +#define xf86RandR12SetRotations XF86NAME(xf86RandR12SetRotations) +#define xf86SaveScreen XF86NAME(xf86SaveScreen) #endif /* _XF86RENAME_H_ */ diff --git a/src/i830_xf86Rotate.c b/src/i830_xf86Rotate.c index 2491e7b3..8240f670 100644 --- a/src/i830_xf86Rotate.c +++ b/src/i830_xf86Rotate.c @@ -34,7 +34,7 @@ #include "windowstr.h" #include "i830_xf86Crtc.h" #include "i830_xf86Modes.h" -#include "i830_randr.h" +#include "i830_xf86RandR12.h" #include "X11/extensions/render.h" #define DPMS_SERVER #include "X11/extensions/dpms.h" |