chiark / gitweb /
unit: properly update references to units which are merged
[elogind.git] / src / timer.h
index 814d9b203752876432698c7c754ae39d654c6c27..ad55cf7c8791786a5c56dede8d59a469eb65c0f1 100644 (file)
@@ -31,7 +31,7 @@ typedef enum TimerState {
         TIMER_WAITING,
         TIMER_RUNNING,
         TIMER_ELAPSED,
-        TIMER_MAINTENANCE,
+        TIMER_FAILED,
         _TIMER_STATE_MAX,
         _TIMER_STATE_INVALID = -1
 } TimerState;
@@ -63,7 +63,7 @@ struct Timer {
         usec_t next_elapse;
 
         TimerState state, deserialized_state;
-        Unit *unit;
+        UnitRef unit;
 
         Watch timer_watch;