1 /*-*- Mode: C; c-basic-offset: 8 -*-*/
6 static void snapshot_done(Unit *u) {
7 Snapshot *s = SNAPSHOT(u);
11 /* Nothing here for now */
14 static UnitActiveState snapshot_active_state(Unit *u) {
15 return SNAPSHOT(u)->state == SNAPSHOT_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
18 const UnitVTable snapshot_vtable = {
19 .suffix = ".snapshot",
21 .done = snapshot_done,
23 .active_state = snapshot_active_state