]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/unit-file.c
Create src/shared/unit-file.[ch] for unit-file related ops
[thirdparty/systemd.git] / src / shared / unit-file.c
CommitLineData
5cfa33e0
ZJS
1/* SPDX-License-Identifier: LGPL-2.1+ */
2
3#include "macro.h"
4#include "unit-file.h"
5
6bool unit_type_may_alias(UnitType type) {
7 return IN_SET(type,
8 UNIT_SERVICE,
9 UNIT_SOCKET,
10 UNIT_TARGET,
11 UNIT_DEVICE,
12 UNIT_TIMER,
13 UNIT_PATH);
14}
15
16bool unit_type_may_template(UnitType type) {
17 return IN_SET(type,
18 UNIT_SERVICE,
19 UNIT_SOCKET,
20 UNIT_TARGET,
21 UNIT_TIMER,
22 UNIT_PATH);
23}