blob: 6754676b9bf3146bf94fcd7cf7bd6f04f2493253 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*-*- Mode: C; c-basic-offset: 8 -*-*/
#include "unit.h"
#include "target.h"
#include "load-fragment.h"
static void target_done(Unit *u) {
Target *m = TARGET(u);
assert(m);
/* Nothing here for now */
}
static UnitActiveState target_active_state(Unit *u) {
return TARGET(u)->state == TARGET_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
}
const UnitVTable target_vtable = {
.suffix = ".target",
.init = unit_load_fragment,
.done = target_done,
.active_state = target_active_state
};
|