xserver/hw/xfree86/common
Thierry Reding 5a4e15c3f6 xfree86: Make driver matching consistent
Most of the driver enumeration functions take an array and a maximum
number of entries that they are allowed to fill in. Upon success, they
return the number of entries filled in. This allows them to be easily
used to consecutively.

One exception is the xf86MatchDriverFromFiles() function, which doesn't
return a value, so callers have to manually search the array for the
first empty entry.

This commit modifies the xf86MatchDriverFromFiles() to behave the same
way as others, which makes it easier to deal with.

Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Tested-By: Aaron Plattner <aplattner@nvidia.com>
Tested-by: Rob Clark <robdclark@gmail.com>  (on arm / platform device)
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2014-07-07 16:11:00 -07:00
..
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
compiler.h xtensa: add support for xtensa architecture 2014-06-02 13:05:40 -07:00
dgaproc.h hw/xfree86: Lots of constant string support 2014-01-12 10:14:48 -08:00
extramodes Remove some default modes that really shouldn't be in the default set. 2008-06-24 10:40:36 -04:00
fourcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
modeline2c.awk Remove some OS/2 leftovers. 2009-04-06 10:58:47 -04:00
vesamodes Fix standard VESA modes. 2006-11-03 14:06:32 -08:00
vidmodeproc.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xaarop.h xfree86: Drop some dead XAA decls from SDK headers 2012-07-25 14:03:31 -07:00
xf86.h xf86Events: add Enable/DisableInputDeviceForVTSwitch functions 2014-01-29 15:29:56 -08:00
xf86AutoConfig.c xfree86: Make driver matching consistent 2014-07-07 16:11:00 -07:00
xf86Build.h.in Print the build time as well as the date if we can. 2007-06-04 02:03:44 -04:00
xf86Bus.c xfree86: allow fallback to PCI bus probe for graphics devices on non-seat0 X servers (#66851) 2014-05-01 08:19:18 +10:00
xf86Bus.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Config.c xfree86: Add "modesetting" to list of fallback drivers 2014-06-02 11:26:35 -07:00
xf86Config.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Configure.c xfree86: use xnfstrdup in the Xorg -configure code 2014-02-10 07:02:38 +10:00
xf86Cursor.c mipointer: Remove EnqueueEvent from miPointerScreenFuncRec 2013-09-10 13:28:23 -04:00
xf86DGA.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86DPMS.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Events.c Set a flag property on the root window to say if the X server VT is active 2014-04-03 16:46:20 -07:00
xf86Extensions.c miinitext: introduce LoadExtensionList() to replace over LoadExtension() 2014-03-25 16:00:17 -07:00
xf86Extensions.h xf86: Re-export extension disable flags 2012-07-16 18:24:49 -07:00
xf86Globals.c configure: Change DEFAULT_LOGPREFIX to really be a filename prefix 2014-04-01 17:14:40 +10:00
xf86Helper.c xf86LogInit: log to XDG_DATA_HOME when not running as root 2014-04-03 14:17:35 +10:00
xf86InPriv.h xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86Init.c Set a flag property on the root window to say if the X server VT is active 2014-04-03 16:46:20 -07:00
xf86Mode.c hw/xfree86: More const declarations for strings 2014-01-12 10:14:49 -08:00
xf86Module.h hw/xfree86: Video Driver ABI version 18.0 2014-05-01 16:53:57 -07:00
xf86Opt.h xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86Option.c xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86Optionstr.h hw/xfree86: Lots of constant string support 2014-01-12 10:14:48 -08:00
xf86PM.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86PciInfo.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Priv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Privstr.h Set a flag property on the root window to say if the X server VT is active 2014-04-03 16:46:20 -07:00
xf86RandR.c DDX/Randr: Avoid server crash when xrandr SetConfig is called while switched away 2013-10-31 18:36:17 -07:00
xf86VGAarbiter.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86VGAarbiter.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86VGAarbiterPriv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86VidMode.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Xinput.c systemd-logind: let the logind code decided whether to close an fd 2014-05-05 07:26:33 +10:00
xf86Xinput.h systemd-logind: Add delayed input device probing 2014-03-03 08:13:55 +01:00
xf86cmap.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86cmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86fbBus.c xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
xf86fbman.c xfree86: Fix -Wshadow warnings 2014-01-22 19:56:31 -08:00
xf86fbman.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86noBus.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86pciBus.c xfree86: Make driver matching consistent 2014-07-07 16:11:00 -07:00
xf86pciBus.h xfree86: Make driver matching consistent 2014-07-07 16:11:00 -07:00
xf86platformBus.c xfree86: Make driver matching consistent 2014-07-07 16:11:00 -07:00
xf86platformBus.h config_odev*: Use XNF alloc functions 2014-03-12 08:50:05 +01:00
xf86sbusBus.c xf86SbusCmapLoadPalette: Delay malloc until needed, avoiding leak on error 2013-04-24 14:22:36 -07:00
xf86sbusBus.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86str.h Require video drivers to report that they support server managed fds 2014-03-10 09:08:46 +01:00
xf86vmode.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86xv.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86xv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86xvmc.c xf86XvMCScreenInit: Avoid leak if dixRegisterPrivateKey fails 2013-02-05 18:34:57 -08:00
xf86xvmc.h hw/xfree86: Lots of constant string support 2014-01-12 10:14:48 -08:00
xf86xvpriv.h xfree86: fix new warnings introduced in rebase. 2012-06-05 10:33:23 -07:00
xisb.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xisb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgHelper.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgVersion.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00