]> git.ipfire.org Git - thirdparty/systemd.git/commit
locale: Move vconsole specific logic to shared/vconsole-util.h
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 5 Feb 2025 12:17:13 +0000 (13:17 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Feb 2025 00:18:36 +0000 (09:18 +0900)
commit6d0f5027364518ef17ef91b61dad945e1c4fd0f5
treedba1b810187ec6cbe82915b26409aa1a9e0c28a5
parent8b413ae4060b21ed4712fdad7eba195890740756
locale: Move vconsole specific logic to shared/vconsole-util.h

This allows reusing the logic in systemd-firstboot.c.

To avoid having to link libxkbcommon into libsystemd-shared, we add
a level of indirection to vconsole_convert_to_x11() so that the verify
function is passed in by the caller.
src/locale/localed-util.c
src/locale/localed-util.h
src/locale/localed.c
src/locale/test-localed-util.c
src/shared/meson.build
src/shared/vconsole-util.c [new file with mode: 0644]
src/shared/vconsole-util.h [new file with mode: 0644]