chiark / gitweb /
core: introduce a new load state "bad-setting"
[elogind.git] / src / basic / unit-def.h
index 503867668bc6087ed7200094dbf1705a7f6a546c..3f13a1c8f33600e64fa9b608e29423e1d45e5395 100644 (file)
@@ -30,8 +30,9 @@ typedef enum UnitType {
 typedef enum UnitLoadState {
         UNIT_STUB = 0,
         UNIT_LOADED,
-        UNIT_NOT_FOUND,
-        UNIT_ERROR,
+        UNIT_NOT_FOUND,    /* error condition #1: unit file not found */
+        UNIT_BAD_SETTING,  /* error condition #2: we couldn't parse some essential unit file setting */
+        UNIT_ERROR,        /* error condition #3: other "system" error, catchall for the rest */
         UNIT_MERGED,
         UNIT_MASKED,
         _UNIT_LOAD_STATE_MAX,