generator: teach generator_add_symlink() to instantiate specified unit
authorLennart Poettering <lennart@poettering.net>
Sun, 16 Oct 2022 20:39:31 +0000 (22:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jan 2023 08:42:16 +0000 (09:42 +0100)
commit0ba07f907721941f611eaca9521937c467bdfff2
tree91d5502d529ca1e7650c7c797476d8cb071ceebd
parent072c8f650519f47a575b1e39509599ace21e2c8f
generator: teach generator_add_symlink() to instantiate specified unit

if we want generators to instantiate a template service, we need to
teach generator_add_symlink() the concept.

Just some preparation for a later commit.

While we are at it, modernize the function around
path_extract_filename() + path_extract_directory()
src/shared/generator.c
src/shared/generator.h