summaryrefslogtreecommitdiff
path: root/hw/xfree86/parser
AgeCommit message (Collapse)AuthorFilesLines
2009-04-09config: fix crash caused by strdup(NULL)Eamon Walsh1-2/+3
2009-04-06config: Remove useless xf86conf{{m,c,re}alloc},free} macrosAdam Jackson16-120/+116
2009-04-06config: s/xf86configStrdup/strdup/Adam Jackson6-36/+24
2009-02-18Obsolete InputDevices keyword in xorg.conf Files sectionAlan Coopersmith3-46/+1
Was only used to provide a list of input devices that XF86-Misc could use, now that XF86-Misc is gone, was parsed and logged, then completely ignored. (Depends on previous patch that introduces OBSOLETE_TOKEN in parser to make obsolete keywords like InputDevices & RgbPath be non-fatal errors.) Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Acked-by: Adam Jackson <ajax@redhat.com>
2009-02-18Make RgbPath keyword in xorg.conf a non-fatal errorAlan Coopersmith2-0/+7
Xorg shouldn't refuse to run just because the user has an xorg.conf that had the previously-used RgbPath keyword in it. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-17Add XkbDir to Files config file sectionKeith Packard3-0/+11
The XKB base directory was not configuable through the config file. Signed-off-by: Keith Packard <keithp@keithp.com>
2008-12-07Export some symbols from libxf86config when installing it.Paulo Cesar Pereira de Andrade1-3/+6
These are private symbols, but used by the X Server. The newly exported symbols were not added to the sdk headers. Optionally, libxf86config could be compiled without hidden symbols when being installed. Thanks to Maarten Maathuis for noticing the problem.
2008-12-07Use libtool convenience libraries and better "symbol" table.Paulo Cesar Pereira de Andrade1-4/+3
All .a libraries were converted to .la, and instead of linking the Xorg binary with a mix of .a and .la, and adding some libraries more then once in the command line, etc, now it generates a single libxorg.la from all the required convenience libraries, and links with a dummy xorg.c (that should usually be the file with the main function...). This removes the requirement of some things like libosandcommon and libinit, that existed to circumvent problems when linking multiple .a and .la in the final Xorg binary. The "symbol table" is now generated dynamically, by a shell script, with an embedded gawk parser that parses cpp output. The new file sdksyms.sh is generated by hand by analyzing all Makefile.am's and making it create a sdksyms.c file, that includes all sdk headers that will add symbols for the Xorg binary. Module headers aren't read, and a in 2 files it was required to add a "<hash>ifndef XorgLoader" around declarations shared between the Xorg binary and libextmod. A few other changes were added to other sdk headers, like preventing multiple inclusion, or including other headers to satisfy dependencies. This should be a lot more portable, and better (hopefully properly) using libtool to generate convenience libraries.
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade12-72/+72
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
2008-11-30Remove declarations of symbols that are never defined.Paulo Cesar Pereira de Andrade1-2/+0
These symbols were removed from the X Server, or never declared. One symbol that may need special attention is XkbBuildCoreState(), that doesn't have a prototype anywhere, but is called from xkb/xkbEvents.c:XkbFilterEvents(), and also used by the macros XkbStateFieldFromRec() and XkbGrabStateFromRec() defined in include/xkbstr.h. fb/wfbrename.h also may need some cleanup, as it makes several "renames" of non existing symbols.
2008-11-29Export symbols defined in the sdk.Paulo Cesar Pereira de Andrade11-33/+35
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()
2008-11-28Make visible symbols required by xorg modules.Paulo Cesar Pereira de Andrade1-1/+1
This patch exports all symbols required by the compilable (in a x86 linux computer) xorg/driver/* modules. Still missing symbols worth mentioning are: sunleo miFindMaxBand no longer available intel (uxa/uxa-accel.c) fbShmPutImage no longer available (and should have been static) mga MGAGetClientPointer (should come from matrox's libhal) This is not a definitive "visibility" patch, as all it does is to export missing symbols, but the modules that current don't compile, may require more symbols once fixed, and third party drivers should also require more symbols exported. A "definitive" patch should export symbols defined in the sdk.
2008-11-08Remove some null statements.James Cloos1-1/+1
Remove several doubled statement-terminal semicolons. Reported by Fernando Carrijo.
2008-10-06xalloc+memset(0) -> xcallocAdam Jackson2-5/+2
2008-07-17Dead code removalDaniel Stone4-135/+2
Remove a whole bunch of code that was never built, be it entire files or just dead ifdefs.
2008-03-02Add missing file from previous commit.David Nusinow1-0/+9
2008-03-02Bug #13860: Ensure that the DRI mode is in octal format.David Nusinow2-0/+7
2008-03-01clean some "unused" warningsGeorge Sapountzis2-2/+1
2008-02-14Eradicate the VTInit code.Adam Jackson1-1/+0
"This option should rarely be used." Never sounds like a better idea.
2007-12-03Use _X_EXPORT instead of __attribute__((visibility("default")))Alan Coopersmith2-2/+4
2007-11-26Allow Virtual to be specified globally in the Screen section.Adam Jackson2-0/+14
The Display subsections are optional, and it's confusing to need to create them just to set a Virtual size.
2007-11-17Bug #9725: Don't look in root's $HOME for config files, that's just confusing.Adam Jackson2-10/+1
2007-11-05Remove all traces of external RGB database (and Speedo)Daniel Stone3-11/+0
Remove all references to an external RGB database (which hasn't been enabled for a very long time). Also get rid of some references to Speedo fonts.
2007-11-02Disable explicit commenting in Monitor section.Adam Jackson1-2/+0
2007-11-02Fix accidental ABI usage in RANDR 1.2 drivers.Adam Jackson2-2/+2
Due to RANDR 1.2, xf86findOptionValue and xf86nameCompare are now ABI. Make sure they're exported from the server.
2007-10-11Remove obsolete error message define from parserDavid Nusinow1-2/+0
2007-10-11Don't bother validating the Device section of the conf fileDavid Nusinow3-24/+0
All the previous tests can now be recovered from if not specified.
2007-10-11Re-enable validation of the screen section of xorg.confDavid Nusinow2-15/+3
This also fixes a problem where the server can't find the device section when it is specified in the screen section.
2007-10-09Allow the user to not have a screen sectionDavid Nusinow1-2/+2
If none is present, a default one will be created. This will be attached to either the first device section in the xorg.conf (allowing you to specify something like using EXA without having a screen section) or a default screen section if none is present in the file.
2007-10-09First pass at improved video driver autoloadingDavid Nusinow2-11/+3
This is what we're currently shipping in Debian. Enables the ability for drivers to ship a text file listing PCI ID's they support, and have the server read them on startup when no driver is specified. This works, but isn't the final solution.
2007-06-29Death to RCS tags.Adam Jackson1-1/+0
2007-06-28Remove the remnants of OS/2 support.Adam Jackson3-39/+4
This has never worked in any modular server release, and as far as I know was never tested in 6.7 through 6.9.
2007-06-28Bug #10770: "Inputdevs" isn't a valid config file keyword.Adam Jackson1-1/+1
2007-05-03Improve modules loading defaultsDavid Nusinow3-0/+20
Provide default modules that may be overrided easily. Previously the server would load a set of default modules, but only if none were specified in the xorg.conf, or if you didn't have a xorg.conf at all. This patch provides a default set and you can add only the "Load" instructions to xorg.conf that you want without losing the defaults. Similarly, if you don't want to load a module that's loaded by default, you can add "Disable modulename" to your xorg.conf (see man xorg.conf in this release for details). This allows for a minimal "Modules" section, where the user only need specify what they want to be different. See bug #10541 for more. The list of default modules is taken from the set loaded by default when there was a xorg.conf containing no "Modules" section. A potential problem for some users is that some users disable a module, most notably DRI, by commenting out the "Load" line in their xorg.conf. This needs to be changed to an uncommented "Disable" line, as DRI is loaded by default.
2007-04-10XFree86: Fix memory leak in option parsingMagnus Vigerlöf1-14/+14
Fix option parsing functions and callers thereof to not leak memory.
2007-04-09Don't write out empty sections from the parser.Adam Jackson1-6/+12
2007-03-25Static cleanup for xf86 ddx.Adam Jackson5-37/+19
2007-03-25Static cleanups, dead code deletion.Adam Jackson8-107/+71
2007-02-17Ensure drivers can use new modes header files.Keith Packard1-1/+3
New modes header files required a few minor changes to be used by external drivers, the most notable of which is the publication of the config file parser header files.
2006-11-04Merge master back to randr-1.2Keith Packard5-319/+4
2006-10-04Merge branch 'master' into randr-1.2Keith Packard1-2/+121
2006-09-24Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Daniel Stone3-3/+128
input-hotplug
2006-09-21Bug 8386: Grow parser buffers to fit an entire line if it's longer than ↵Aaron Plattner1-2/+121
CONFIG_BUF_LEN.
2006-09-18Remove smashing of CFLAGS from server build.Keith Packard1-1/+1
CFLAGS is a user variable, extracted from the environment at configure time and settable by the user at build time. We must not override this variable.
2006-09-13Bug 7641: fix comment written to Xorg.conf (s/VertSync/VertRefresh/)Bill Nottingham1-1/+1
X.Org Bugzilla #7641 <https://bugs.freedesktop.org/show_bug.cgi?id=7641> Patch #6349 <https://bugs.freedesktop.org/attachment.cgi?id=6349>
2006-09-10If we're installing libxf86config, install headers needed to build against it.Donnie Berkholz1-0/+6
2006-08-25xfree86/parser: use 'kbd' driver when 'keyboard' specifiedDaniel Stone1-1/+4
Now that we've completely ditched the old driver, we should probably make a best-effort attempt to keep configs working.
2006-07-21remove undead files from masterDaniel Stone1-308/+0
Remove dead files which worked their way back in when merging from master. Ugh.
2006-07-21Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Daniel Stone22-21/+308
input-hotplug
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson22-22/+0