summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-17 14:04:40 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-17 17:32:49 +0100
commit0f13f3bd7918b84955eaa0ceeea0f964877a93f7 (patch)
tree6b87343f5f65a23ff1ec31d06af1177550f742d4 /src/core/unit.h
parent06cc6afa047deb56318ce424804bb04c4f690b30 (diff)
core: move check whether a unit is suitable to become transient into unit.c
Lets introduce unit_is_pristine() that verifies whether a unit is suitable to become a transient unit, by checking that it is no referenced yet and has no data on disk assigned.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index bcf41d2348..a69d624fad 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -586,6 +586,8 @@ int unit_require_mounts_for(Unit *u, const char *path);
bool unit_type_supported(UnitType t);
+bool unit_is_pristine(Unit *u);
+
static inline bool unit_supported(Unit *u) {
return unit_type_supported(u->type);
}