chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standarize on one spelling of symlink error message
[elogind.git]
/
src
/
core
/
timer.h
diff --git
a/src/core/timer.h
b/src/core/timer.h
index 57a514a68c5f7a7dd824afdf018b830949039607..fed15e9165aef2fafc8f4c0e6e750a31f7b2c1d0 100644
(file)
--- a/
src/core/timer.h
+++ b/
src/core/timer.h
@@
-52,8
+52,8
@@
typedef struct TimerValue {
bool disabled;
clockid_t clock_id;
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);
usec_t next_elapse;
LIST_FIELDS(struct TimerValue, value);
@@
-74,15
+74,16
@@
struct Timer {
usec_t next_elapse_realtime;
TimerState state, deserialized_state;
usec_t next_elapse_realtime;
TimerState state, deserialized_state;
- UnitRef unit;
Watch monotonic_watch;
Watch realtime_watch;
TimerResult result;
Watch monotonic_watch;
Watch realtime_watch;
TimerResult result;
+
+ usec_t last_trigger_monotonic;
};
};
-void timer_
unit_notify(Unit *u, UnitActiveState new_state
);
+void timer_
free_values(Timer *t
);
extern const UnitVTable timer_vtable;
extern const UnitVTable timer_vtable;