]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: Clean up includes a little
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 9 Aug 2024 12:07:34 +0000 (14:07 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 Aug 2024 12:18:40 +0000 (14:18 +0200)
src/core/job.h
src/core/unit.h

index 8e8d6ff08f0f338ab228a331049831ac341d6c16..680b4a601693a86eeb931f378367036136f4435c 100644 (file)
@@ -3,12 +3,11 @@
 
 #include <stdbool.h>
 
+#include "sd-bus.h"
 #include "sd-event.h"
 
 #include "list.h"
 #include "unit-dependency-atom.h"
-#include "unit-name.h"
-#include "unit.h"
 
 typedef struct ActivationDetails ActivationDetails;
 typedef struct Job Job;
@@ -17,6 +16,8 @@ typedef enum JobType JobType;
 typedef enum JobState JobState;
 typedef enum JobMode JobMode;
 typedef enum JobResult JobResult;
+typedef struct Manager Manager;
+typedef struct Unit Unit;
 
 /* Be careful when changing the job types! Adjust job_merging_table[] accordingly! */
 enum JobType {
index 831bce885c1cdf481dcd12ba3dd0293b2413f4aa..7f11539986b32ed226c85bec8f8ff1a39d2517d3 100644 (file)
@@ -17,15 +17,12 @@ typedef enum UnitMountDependencyType {
         _UNIT_MOUNT_DEPENDENCY_TYPE_INVALID = -EINVAL,
 } UnitMountDependencyType;
 
-#include "bpf-program.h"
 #include "cgroup.h"
 #include "condition.h"
 #include "emergency-action.h"
 #include "install.h"
 #include "list.h"
 #include "pidref.h"
-#include "set.h"
-#include "show-status.h"
 #include "unit-file.h"
 
 typedef struct UnitRef UnitRef;