summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-04-13 19:03:43 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-04-14 20:27:59 +0100
commite77e07f60186b96a9b5df398e92a18a72918e0f2 (patch)
treea027c2307414487484f58dea1a1c2752becda4ed /src/core/unit.h
parent6e4ec79a3cc5a24d9a5ac53c3737c4d398ac383d (diff)
downloadsystemd-e77e07f60186b96a9b5df398e92a18a72918e0f2.tar.gz
preset: Add ignore directive
The ignore directive specifies to not do anything with the given unit and leave existing configuration intact. This allows distributions to gradually adopt preset files by shipping a ignore * preset file.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index d3eb5ba881..ea236d933c 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -11,6 +11,7 @@
#include "bpf-program.h"
#include "condition.h"
#include "emergency-action.h"
+#include "install.h"
#include "list.h"
#include "show-status.h"
#include "set.h"
@@ -358,7 +359,7 @@ typedef struct Unit {
/* Cached unit file state and preset */
UnitFileState unit_file_state;
- int unit_file_preset;
+ PresetAction unit_file_preset;
/* Where the cpu.stat or cpuacct.usage was at the time the unit was started */
nsec_t cpu_usage_base;
@@ -954,7 +955,7 @@ void unit_start_on_failure(Unit *u, const char *dependency_name, UnitDependencyA
void unit_trigger_notify(Unit *u);
UnitFileState unit_get_unit_file_state(Unit *u);
-int unit_get_unit_file_preset(Unit *u);
+PresetAction unit_get_unit_file_preset(Unit *u);
Unit* unit_ref_set(UnitRef *ref, Unit *source, Unit *target);
void unit_ref_unset(UnitRef *ref);