mi: List extensions in usage message

Not all extensions can be enabled or disabled at runtime, list the
extensions which can from the help message rather than on error only.

v2:
 * Print the header message in the ListStaticExtensions() (Peter
   Hutterer)
 * Do not export ListStaticExtensions() as Xserver API

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
Olivier Fourdan
2020-09-09 10:51:24 +02:00
committed by Olivier Fourdan
parent a81c98e42a
commit 3cdac5ba07
20 changed files with 128 additions and 14 deletions

View File

@@ -122,6 +122,7 @@ if build_xorg
# For now, requires xf86 ddx, could be adjusted to use another
unit_sources = [
'../mi/miinitext.c',
'../mi/miinitext.h',
'fixes.c',
'input.c',
'list.c',