]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/service.h
core: undo the dependency inversion between unit.h and all unit types
[thirdparty/systemd.git] / src / core / service.h
index 116d5d119fabb279796e61f514923205dcdc9a6b..6d64f8e9e6fe98efb4dd249fcdaad3a4f30be640 100644 (file)
@@ -14,6 +14,8 @@ typedef struct ServiceFDStore ServiceFDStore;
 #include "kill.h"
 #include "path.h"
 #include "ratelimit.h"
+#include "socket.h"
+#include "unit.h"
 
 typedef enum ServiceRestart {
         SERVICE_RESTART_NO,
@@ -204,3 +206,5 @@ NotifyState notify_state_from_string(const char *s) _pure_;
 
 const char* service_result_to_string(ServiceResult i) _const_;
 ServiceResult service_result_from_string(const char *s) _pure_;
+
+DEFINE_CAST(SERVICE, Service);