summaryrefslogtreecommitdiff
path: root/snapshot.c
blob: fc7bb5f47898e1b42e0c8757a7586e160a3d5e28 (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
25
26
27
28
29
30
31
/*-*- Mode: C; c-basic-offset: 8 -*-*/

#include "name.h"
#include "snapshot.h"

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

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

        assert(s);

        /* Nothing here for now */
}

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

        .load = NULL,
        .dump = NULL,

        .start = NULL,
        .stop = NULL,
        .reload = NULL,

        .active_state = snapshot_active_state,

        .free_hook = snapshot_free_hook
};