5cfa33e0bc
So far we put such functinos in install.[ch], but that is tied too closely to enable/disable. Let's start moving things to a place with a better name.
24 lines
616 B
C
24 lines
616 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
|
|
#include "macro.h"
|
|
#include "unit-file.h"
|
|
|
|
bool unit_type_may_alias(UnitType type) {
|
|
return IN_SET(type,
|
|
UNIT_SERVICE,
|
|
UNIT_SOCKET,
|
|
UNIT_TARGET,
|
|
UNIT_DEVICE,
|
|
UNIT_TIMER,
|
|
UNIT_PATH);
|
|
}
|
|
|
|
bool unit_type_may_template(UnitType type) {
|
|
return IN_SET(type,
|
|
UNIT_SERVICE,
|
|
UNIT_SOCKET,
|
|
UNIT_TARGET,
|
|
UNIT_TIMER,
|
|
UNIT_PATH);
|
|
}
|