unit-name: add new unit_name_build_from_type() helper
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Feb 2018 17:24:57 +0000 (18:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Apr 2018 09:34:48 +0000 (11:34 +0200)
commit72406c2f7d23455d9e25a395cbf674cc4aff2149
tree2af6e7073c5255122a988df8d0284073728bc2c5
parent812724c14b3d13087cfc36fc67de6c160a635776
unit-name: add new unit_name_build_from_type() helper

The new helper is much like unit_name_build() but expects a UnitType
value instead of a suffix.
src/basic/unit-name.c
src/basic/unit-name.h
src/test/test-unit-name.c