]>
Commit | Line | Data |
---|---|---|
5cb5a6ff LP |
1 | /*-*- Mode: C; c-basic-offset: 8 -*-*/ |
2 | ||
87f0e418 | 3 | #include "unit.h" |
5cb5a6ff LP |
4 | #include "snapshot.h" |
5 | ||
87f0e418 LP |
6 | static void snapshot_done(Unit *u) { |
7 | Snapshot *s = SNAPSHOT(u); | |
5cb5a6ff LP |
8 | |
9 | assert(s); | |
10 | ||
11 | /* Nothing here for now */ | |
12 | } | |
13 | ||
87f0e418 LP |
14 | static UnitActiveState snapshot_active_state(Unit *u) { |
15 | return SNAPSHOT(u)->state == SNAPSHOT_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE; | |
034c6ed7 LP |
16 | } |
17 | ||
87f0e418 | 18 | const UnitVTable snapshot_vtable = { |
5cb5a6ff LP |
19 | .suffix = ".snapshot", |
20 | ||
034c6ed7 | 21 | .done = snapshot_done, |
5cb5a6ff | 22 | |
034c6ed7 | 23 | .active_state = snapshot_active_state |
5cb5a6ff | 24 | }; |