basic: split unit-name.[ch] into two (#7065)
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Oct 2017 18:21:29 +0000 (20:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Oct 2017 18:21:28 +0000 (20:21 +0200)
commit523578aa6db4b16948c28d798a78773dcec0fd4f
treee0ea1817d0739677746084ec10d43cb88920fe79
parentda172fa9ea1906d9c4c5d5e4ca1c03892f769f02
basic: split unit-name.[ch] into two (#7065)

It always bothered me a bit that unit-name.[ch] contains so many
definitions that aren't really have much to do with unit nameing, for
example all the unit state definitions.

With this patch unit-name.[ch] is split into two: the file now contains
only the unit naming related operations, and everything else is split
out into a new set of files unit-def.[ch]. That's mostly unit state
stuff as well as dbus path and interface name operations.

No functional changes. This just moves code around.

(Note as both .c files include each other's headers this doesn't make
the build simpler or anything. All it does is make the C files a bit
shorter, and medicate my pretend OCD)
src/basic/meson.build
src/basic/unit-def.c [new file with mode: 0644]
src/basic/unit-def.h [new file with mode: 0644]
src/basic/unit-name.c
src/basic/unit-name.h