xf86drmMode: introduce drmModeGetConnectorTypeName
authorSimon Ser <contact@emersion.fr>
Tue, 1 Feb 2022 13:33:34 +0000 (14:33 +0100)
committerSimon Ser <contact@emersion.fr>
Sat, 2 Jul 2022 20:13:29 +0000 (20:13 +0000)
commit50f8d517733d24fce6693ffae552f9833e2e6aa9
tree4ea0b222a2ea19f8b1894528ec82e1cec41c3cc9
parentf7828dc180ba3427b5e405fab25e9846c07322bc
xf86drmMode: introduce drmModeGetConnectorTypeName

User-space often needs to print the name of a connector type.
When a new connector type is added, all user-space programs need
to be updated to support the new connector type.

Expose a function to get a connector type name in libdrm.

The names are taken from the kernel [1].

[1]: https://cgit.freedesktop.org/drm/drm/tree/drivers/gpu/drm/drm_connector.c?h=4fc8cb47fcfdc93e274a1291757e478df4f9c39b#n83

Signed-off-by: Simon Ser <contact@emersion.fr>
core-symbols.txt
xf86drmMode.c
xf86drmMode.h