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