X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Ftimer.h;h=c145348c7d82fef19b01e0c01db225e6df87adb4;hp=57a514a68c5f7a7dd824afdf018b830949039607;hb=fea7838e7e0b2724f5e0bc028121a08b42995045;hpb=36697dc0199e25f09b78090fcf5f1cf8a3648ffd diff --git a/src/core/timer.h b/src/core/timer.h index 57a514a68..c145348c7 100644 --- a/src/core/timer.h +++ b/src/core/timer.h @@ -52,8 +52,8 @@ typedef struct TimerValue { bool disabled; clockid_t clock_id; - usec_t value; - CalendarSpec *calendar_spec; + usec_t value; /* only for monotonic events */ + CalendarSpec *calendar_spec; /* only for calendar events */ usec_t next_elapse; LIST_FIELDS(struct TimerValue, value); @@ -84,6 +84,8 @@ struct Timer { void timer_unit_notify(Unit *u, UnitActiveState new_state); +void timer_free_values(Timer *t); + extern const UnitVTable timer_vtable; const char *timer_state_to_string(TimerState i);