chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
dbus: properly encode job type
[elogind.git]
/
timer.h
1
/*-*- Mode: C; c-basic-offset: 8 -*-*/
2
3
#ifndef footimerhfoo
4
#define footimerhfoo
5
6
typedef struct Timer Timer;
7
8
#include "unit.h"
9
10
typedef enum TimerState {
11
TIMER_DEAD,
12
TIMER_WAITING,
13
TIMER_RUNNING,
14
_TIMER_STATE_MAX
15
} TimerState;
16
17
struct Timer {
18
Meta meta;
19
20
TimerState state;
21
22
clockid_t clock_id;
23
usec_t next_elapse;
24
25
Service *service;
26
};
27
28
const UnitVTable timer_vtable;
29
30
#endif