chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdout: remove stdout-syslog-bridge since it is now obsoleted by journald
[elogind.git]
/
src
/
timer.h
diff --git
a/src/timer.h
b/src/timer.h
index 69c5609a9c5631fc05e987c5ea0c8ebdc6acc724..6295605510a0ffd633e2341792415b65a7064dea 100644
(file)
--- 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
#ifndef footimerhfoo
#define footimerhfoo
@@
-31,7
+31,7
@@
typedef enum TimerState {
TIMER_WAITING,
TIMER_RUNNING,
TIMER_ELAPSED,
TIMER_WAITING,
TIMER_RUNNING,
TIMER_ELAPSED,
- TIMER_
MAINTAINANCE
,
+ TIMER_
FAILED
,
_TIMER_STATE_MAX,
_TIMER_STATE_INVALID = -1
} TimerState;
_TIMER_STATE_MAX,
_TIMER_STATE_INVALID = -1
} TimerState;
@@
-47,25
+47,22
@@
typedef enum TimerBase {
} TimerBase;
typedef struct TimerValue {
} TimerBase;
typedef struct TimerValue {
- TimerBase base;
usec_t value;
usec_t value;
-
usec_t next_elapse;
usec_t next_elapse;
- bool disabled;
-
LIST_FIELDS(struct TimerValue, value);
LIST_FIELDS(struct TimerValue, value);
+
+ TimerBase base;
+ bool disabled;
} TimerValue;
struct Timer {
Meta meta;
LIST_HEAD(TimerValue, values);
} TimerValue;
struct Timer {
Meta meta;
LIST_HEAD(TimerValue, values);
-
- TimerState state, deserialized_state;
-
usec_t next_elapse;
usec_t next_elapse;
+ TimerState state, deserialized_state;
Unit *unit;
Watch timer_watch;
Unit *unit;
Watch timer_watch;