|
Zbigniew Jędrzejewski-Szmek |
f1004d |
From cb87a73b45503eaa6bead291423a529b00d27156 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
Date: Wed, 8 Oct 2014 11:58:57 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
Subject: [PATCH] unit: move UnitDependency to unit-name
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
---
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
src/core/unit.c | 29 ----------------------------
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
src/core/unit.h | 51 --------------------------------------------------
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
src/shared/unit-name.c | 29 ++++++++++++++++++++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
src/shared/unit-name.h | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
4 files changed, 80 insertions(+), 80 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
diff --git a/src/core/unit.c b/src/core/unit.c
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
index 399d202738..0389e6e440 100644
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
--- a/src/core/unit.c
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+++ b/src/core/unit.c
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -3457,32 +3457,3 @@ static const char* const unit_active_state_table[_UNIT_ACTIVE_STATE_MAX] = {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
};
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
DEFINE_STRING_TABLE_LOOKUP(unit_active_state, UnitActiveState);
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-static const char* const unit_dependency_table[_UNIT_DEPENDENCY_MAX] = {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REQUIRES] = "Requires",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REQUIRES_OVERRIDABLE] = "RequiresOverridable",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REQUISITE] = "Requisite",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REQUISITE_OVERRIDABLE] = "RequisiteOverridable",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_WANTS] = "Wants",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_BINDS_TO] = "BindsTo",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_PART_OF] = "PartOf",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REQUIRED_BY] = "RequiredBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REQUIRED_BY_OVERRIDABLE] = "RequiredByOverridable",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_WANTED_BY] = "WantedBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_BOUND_BY] = "BoundBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_CONSISTS_OF] = "ConsistsOf",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_CONFLICTS] = "Conflicts",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_CONFLICTED_BY] = "ConflictedBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_BEFORE] = "Before",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_AFTER] = "After",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_ON_FAILURE] = "OnFailure",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_TRIGGERS] = "Triggers",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_TRIGGERED_BY] = "TriggeredBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_PROPAGATES_RELOAD_TO] = "PropagatesReloadTo",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_RELOAD_PROPAGATED_FROM] = "ReloadPropagatedFrom",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_JOINS_NAMESPACE_OF] = "JoinsNamespaceOf",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REFERENCES] = "References",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- [UNIT_REFERENCED_BY] = "ReferencedBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-};
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-DEFINE_STRING_TABLE_LOOKUP(unit_dependency, UnitDependency);
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
diff --git a/src/core/unit.h b/src/core/unit.h
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
index 3e61067f84..a773762f36 100644
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
--- a/src/core/unit.h
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+++ b/src/core/unit.h
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -28,7 +28,6 @@
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
typedef struct Unit Unit;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
typedef struct UnitVTable UnitVTable;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
typedef enum UnitActiveState UnitActiveState;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-typedef enum UnitDependency UnitDependency;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
typedef struct UnitRef UnitRef;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
typedef struct UnitStatusMessageFormats UnitStatusMessageFormats;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -70,53 +69,6 @@ static inline bool UNIT_IS_INACTIVE_OR_FAILED(UnitActiveState t) {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
return t == UNIT_INACTIVE || t == UNIT_FAILED;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
}
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-enum UnitDependency {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Positive dependencies */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REQUIRES,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REQUIRES_OVERRIDABLE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REQUISITE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REQUISITE_OVERRIDABLE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_WANTS,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_BINDS_TO,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_PART_OF,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Inverse of the above */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REQUIRED_BY, /* inverse of 'requires' and 'requisite' is 'required_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REQUIRED_BY_OVERRIDABLE, /* inverse of 'requires_overridable' and 'requisite_overridable' is 'soft_required_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_WANTED_BY, /* inverse of 'wants' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_BOUND_BY, /* inverse of 'binds_to' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_CONSISTS_OF, /* inverse of 'part_of' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Negative dependencies */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_CONFLICTS, /* inverse of 'conflicts' is 'conflicted_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_CONFLICTED_BY,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Order */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_BEFORE, /* inverse of 'before' is 'after' and vice versa */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_AFTER,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* On Failure */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_ON_FAILURE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Triggers (i.e. a socket triggers a service) */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_TRIGGERS,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_TRIGGERED_BY,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Propagate reloads */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_PROPAGATES_RELOAD_TO,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_RELOAD_PROPAGATED_FROM,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Joins namespace of */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_JOINS_NAMESPACE_OF,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- /* Reference information for GC logic */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REFERENCES, /* Inverse of 'references' is 'referenced_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- UNIT_REFERENCED_BY,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- _UNIT_DEPENDENCY_MAX,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
- _UNIT_DEPENDENCY_INVALID = -1
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-};
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
#include "manager.h"
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
#include "job.h"
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -629,9 +581,6 @@ int unit_require_mounts_for(Unit *u, const char *path);
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
const char *unit_active_state_to_string(UnitActiveState i) _const_;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
UnitActiveState unit_active_state_from_string(const char *s) _pure_;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-const char *unit_dependency_to_string(UnitDependency i) _const_;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-UnitDependency unit_dependency_from_string(const char *s) _pure_;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
-
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
/* Macros which append UNIT= or USER_UNIT= to the message */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
#define log_full_unit(level, unit, ...) log_meta_object(level, __FILE__, __LINE__, __func__, getpid() == 1 ? "UNIT=" : "USER_UNIT=", unit, __VA_ARGS__)
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
diff --git a/src/shared/unit-name.c b/src/shared/unit-name.c
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
index a2d62d3151..2ef85450e7 100644
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
--- a/src/shared/unit-name.c
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+++ b/src/shared/unit-name.c
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -592,3 +592,32 @@ int build_subslice(const char *slice, const char*name, char **subslice) {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
*subslice = ret;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
return 0;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
}
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+static const char* const unit_dependency_table[_UNIT_DEPENDENCY_MAX] = {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REQUIRES] = "Requires",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REQUIRES_OVERRIDABLE] = "RequiresOverridable",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REQUISITE] = "Requisite",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REQUISITE_OVERRIDABLE] = "RequisiteOverridable",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_WANTS] = "Wants",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_BINDS_TO] = "BindsTo",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_PART_OF] = "PartOf",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REQUIRED_BY] = "RequiredBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REQUIRED_BY_OVERRIDABLE] = "RequiredByOverridable",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_WANTED_BY] = "WantedBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_BOUND_BY] = "BoundBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_CONSISTS_OF] = "ConsistsOf",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_CONFLICTS] = "Conflicts",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_CONFLICTED_BY] = "ConflictedBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_BEFORE] = "Before",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_AFTER] = "After",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_ON_FAILURE] = "OnFailure",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_TRIGGERS] = "Triggers",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_TRIGGERED_BY] = "TriggeredBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_PROPAGATES_RELOAD_TO] = "PropagatesReloadTo",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_RELOAD_PROPAGATED_FROM] = "ReloadPropagatedFrom",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_JOINS_NAMESPACE_OF] = "JoinsNamespaceOf",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REFERENCES] = "References",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ [UNIT_REFERENCED_BY] = "ReferencedBy",
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+};
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+DEFINE_STRING_TABLE_LOOKUP(unit_dependency, UnitDependency);
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
diff --git a/src/shared/unit-name.h b/src/shared/unit-name.h
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
index d06d2b2353..daeb56a860 100644
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
--- a/src/shared/unit-name.h
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+++ b/src/shared/unit-name.h
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -29,6 +29,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
typedef enum UnitType UnitType;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
typedef enum UnitLoadState UnitLoadState;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+typedef enum UnitDependency UnitDependency;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
enum UnitType {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
UNIT_SERVICE = 0,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -59,6 +60,53 @@ enum UnitLoadState {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
_UNIT_LOAD_STATE_INVALID = -1
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
};
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+enum UnitDependency {
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Positive dependencies */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REQUIRES,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REQUIRES_OVERRIDABLE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REQUISITE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REQUISITE_OVERRIDABLE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_WANTS,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_BINDS_TO,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_PART_OF,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Inverse of the above */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REQUIRED_BY, /* inverse of 'requires' and 'requisite' is 'required_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REQUIRED_BY_OVERRIDABLE, /* inverse of 'requires_overridable' and 'requisite_overridable' is 'soft_required_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_WANTED_BY, /* inverse of 'wants' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_BOUND_BY, /* inverse of 'binds_to' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_CONSISTS_OF, /* inverse of 'part_of' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Negative dependencies */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_CONFLICTS, /* inverse of 'conflicts' is 'conflicted_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_CONFLICTED_BY,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Order */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_BEFORE, /* inverse of 'before' is 'after' and vice versa */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_AFTER,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* On Failure */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_ON_FAILURE,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Triggers (i.e. a socket triggers a service) */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_TRIGGERS,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_TRIGGERED_BY,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Propagate reloads */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_PROPAGATES_RELOAD_TO,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_RELOAD_PROPAGATED_FROM,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Joins namespace of */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_JOINS_NAMESPACE_OF,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ /* Reference information for GC logic */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REFERENCES, /* Inverse of 'references' is 'referenced_by' */
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ UNIT_REFERENCED_BY,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ _UNIT_DEPENDENCY_MAX,
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+ _UNIT_DEPENDENCY_INVALID = -1
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+};
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
const char *unit_type_to_string(UnitType i) _const_;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
UnitType unit_type_from_string(const char *s) _pure_;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
@@ -112,3 +160,6 @@ char *unit_name_mangle(const char *name, enum unit_name_mangle allow_globs);
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
char *unit_name_mangle_with_suffix(const char *name, enum unit_name_mangle allow_globs, const char *suffix);
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
int build_subslice(const char *slice, const char*name, char **subslice);
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+const char *unit_dependency_to_string(UnitDependency i) _const_;
|
|
Zbigniew Jędrzejewski-Szmek |
f1004d |
+UnitDependency unit_dependency_from_string(const char *s) _pure_;
|