]> git.ipfire.org Git - thirdparty/systemd.git/commit
specifiers: introduce common macros for generating specifier tables
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Nov 2020 14:15:24 +0000 (15:15 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Nov 2020 05:13:02 +0000 (14:13 +0900)
commit2824aa0796abbba718505bd5d4132dc6a6e179e8
tree170f362b239c2011327d00f41621e1e9d0d40ec9
parentff84fadbf1466c5cd1da50394aba6ad3d3c3614c
specifiers: introduce common macros for generating specifier tables

In many cases the tables are largely the same, hence define a common set
of macros to generate the common parts.

This adds in a couple of missing specifiers here and there, so is more
thant just refactoring: it actually fixes accidental omissions.

Note that some entries that look like they could be unified under these
macros can't really be unified, since they are slightly different. For
example in the DNSSD service logic we want to use the DNSSD hostname for
%H rather than the unmodified kernel one.
src/core/unit-printf.c
src/partition/repart.c
src/shared/install-printf.c
src/shared/specifier.h
src/sysusers/sysusers.c
src/test/test-specifier.c
src/test/test-strv.c
src/tmpfiles/tmpfiles.c