core: add unit_dbus_interface_from_type() to unit-name.h
authorLennart Poettering <lennart@poettering.net>
Thu, 27 Aug 2015 20:30:43 +0000 (22:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2015 00:10:10 +0000 (02:10 +0200)
commit21b735e798c580e7af8c33ace9f8565860b7f8df
tree8d9b07c8feb736acb556eac9ef74d1eeda9ae973
parentd56cc298808b2dbfa28ae893d6f47f34df3196b1
core: add unit_dbus_interface_from_type() to unit-name.h

Let's add a way to get the type-specific D-Bus interface of a unit from
either its type or name to src/basic/unit-name.[ch]. That way we can
share it with the client side, where it is useful in tools like cgls or
machinectl.

Also ports over machinectl to make use of this.
19 files changed:
src/basic/unit-name.c
src/basic/unit-name.h
src/core/automount.c
src/core/busname.c
src/core/dbus-unit.c
src/core/dbus.c
src/core/device.c
src/core/mount.c
src/core/path.c
src/core/scope.c
src/core/service.c
src/core/slice.c
src/core/snapshot.c
src/core/socket.c
src/core/swap.c
src/core/target.c
src/core/timer.c
src/core/unit.h
src/machine/machinectl.c