X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Ftimer.h;h=de412a043ec65ceff6c3e7fc9229d00dfa97f5f6;hb=652212b0c2b60b9ef9b2e24eae82401f880fa21a;hp=3e7efa4c8370779fa3bff6423a9a982c74bc497c;hpb=9f5eb56a13dee1085cbf2560ac3afd73f72402cb;p=elogind.git diff --git a/src/core/timer.h b/src/core/timer.h index 3e7efa4c8..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 */ @@ -72,8 +71,9 @@ struct Timer { 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; @@ -82,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);