]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: drop the list of valid net naming schemes
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Sep 2021 07:33:30 +0000 (09:33 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Sep 2021 12:22:37 +0000 (14:22 +0200)
commit77faadfdd3d2d934f52d1d35b60e774c494d84b8
tree2f5f066dccd84fcf7ec1c5256cc4022f4b2bdc4d
parentacaa6368663a8972e3722751bd67bb1e0b3f272f
meson: drop the list of valid net naming schemes

We used 'combo' type for the scheme list. For a while we forgot to add
new names, and recently aa0a23ec86 added v241, v243, v245, and v247.
I want to allow defining new values during configuration, which means
that we can't use meson to verify the list of options. So any value is
allowed, but then two tests are added: one that will fail compilation if some
invalid name is given (other than "latest"), and one that converts
DEFAULT_NET_NAMING_SCHEME to a NamingScheme pointer.
meson.build
meson_options.txt
src/shared/netif-naming-scheme.c
src/shared/netif-naming-scheme.h
src/test/meson.build
src/test/test-net-naming-scheme.c [new file with mode: 0644]