X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftimer.h;h=ad55cf7c8791786a5c56dede8d59a469eb65c0f1;hb=6ef25fb65ee0a62972ed7cbc01b6a11feb5fcb16;hp=fc74368e738ce20ab74b31258b10d6ad795364e2;hpb=7fab9d01b5940a67ca070754361afb9dfaa520f2;p=elogind.git diff --git a/src/timer.h b/src/timer.h index fc74368e7..ad55cf7c8 100644 --- a/src/timer.h +++ b/src/timer.h @@ -1,4 +1,4 @@ -/*-*- Mode: C; c-basic-offset: 8 -*-*/ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ #ifndef footimerhfoo #define footimerhfoo @@ -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;