summaryrefslogtreecommitdiff
path: root/snapshot.c
blob: 3e55075269e894477ac8d18ac22f2310477a6025 (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
/*-*- Mode: C; c-basic-offset: 8 -*-*/

#include "unit.h"
#include "snapshot.h"

static void snapshot_done(Unit *u) {
        Snapshot *s = SNAPSHOT(u);

        assert(s);

        /* Nothing here for now */
}

static UnitActiveState snapshot_active_state(Unit *u) {
        return SNAPSHOT(u)->state == SNAPSHOT_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
}

const UnitVTable snapshot_vtable = {
        .suffix = ".snapshot",

        .done = snapshot_done,

        .active_state = snapshot_active_state
};