summaryrefslogtreecommitdiff
path: root/snapshot.c
blob: 8fd819e2a9ef979785d1d63d4a34b7f59109b3af (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 "name.h"
#include "snapshot.h"

static void snapshot_done(Name *n) {
        Snapshot *s = SNAPSHOT(n);

        assert(s);

        /* Nothing here for now */
}

static NameActiveState snapshot_active_state(Name *n) {
        return SNAPSHOT(n)->state == SNAPSHOT_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
}

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

        .done = snapshot_done,

        .active_state = snapshot_active_state
};