]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.h
core: simplify unit type detection logic
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Apr 2015 23:29:00 +0000 (01:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Apr 2015 23:29:00 +0000 (01:29 +0200)
commit1c2e9646e4a1720fc8ad35c705c195ae1a2c5ce0
tree3d7f61210c0b45fb1f1fa61629c2b5825a0c43e9
parent524d896ac17518b824b2c94b3b0b2a23c23da08f
core: simplify unit type detection logic

Introduce a new call unit_type_supported() and make use of it
everywhere.

Also, drop Manager parameter from per-type supported method prototype.
src/core/automount.c
src/core/busname.c
src/core/device.c
src/core/manager.c
src/core/swap.c
src/core/unit.c
src/core/unit.h