X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Ftimer.h;h=de412a043ec65ceff6c3e7fc9229d00dfa97f5f6;hb=8c8549db376ce9325e5a7547959ab7d9218505b7;hp=b3722f0028f325c2e618e864a4916d6dd1a162ef;hpb=718db96199eb307751264e4163555662c9a389fa;p=elogind.git diff --git a/src/core/timer.h b/src/core/timer.h index b3722f002..de412a043 100644 --- a/src/core/timer.h +++ b/src/core/timer.h @@ -50,7 +50,6 @@ typedef enum TimerBase { typedef struct TimerValue { TimerBase base; bool disabled; - clockid_t clock_id; usec_t value; /* only for monotonic events */ CalendarSpec *calendar_spec; /* only for calendar events */ @@ -69,9 +68,12 @@ typedef enum TimerResult { struct Timer { Unit meta; + usec_t accuracy_usec; + LIST_HEAD(TimerValue, values); - usec_t next_elapse_monotonic; usec_t next_elapse_realtime; + usec_t next_elapse_monotonic_or_boottime; + dual_timestamp last_trigger; TimerState state, deserialized_state; @@ -80,7 +82,10 @@ struct Timer { TimerResult result; - usec_t last_trigger_monotonic; + bool persistent; + bool wake_system; + + char *stamp_path; }; void timer_free_values(Timer *t);