Move stopped_reason_t to service_constants.h header.
authorDavin McCall <davmac@davmac.org>
Tue, 19 Jun 2018 20:39:02 +0000 (21:39 +0100)
committerDavin McCall <davmac@davmac.org>
Tue, 19 Jun 2018 20:39:02 +0000 (21:39 +0100)
src/includes/service-constants.h
src/includes/service.h

index 9a5e4772889bfec0fad95f591fe6cbb151f84978..884a487fad5799556344d53316947be65311b4f3 100644 (file)
@@ -38,4 +38,19 @@ enum class shutdown_type_t {
     REBOOT             // Reboot system
 };
 
+/* Reasons for why service stopped */
+enum class stopped_reason_t
+{
+    NORMAL,
+
+    // Start failures:
+    DEPFAILED, // A dependency failed to start
+    FAILED,    // failed to start (process terminated)
+       EXECFAILED, // failed to start (couldn't launch process)
+    TIMEDOUT,  // timed out when starting
+
+    // Failure after starting:
+    TERMINATED // process terminated
+};
+
 #endif
index 3745c062680d30d186b5a1e1c823619b73194e28..6585028da82db3a24519412d1fe8030634e18aec 100644 (file)
@@ -183,20 +183,6 @@ enum class dependency_type
     MILESTONE   // dependency must start successfully, but once started the dependency becomes soft
 };
 
-enum class stopped_reason_t
-{
-    NORMAL,
-
-    // Start failures:
-    DEPFAILED, // A dependency failed to start
-    FAILED,    // failed to start (process terminated)
-       EXECFAILED, // failed to start (couldn't launch process)
-    TIMEDOUT,  // timed out when starting
-
-    // Failure after starting:
-    TERMINATED // process terminated
-};
-
 /* Service dependency record */
 class service_dep
 {