]>
Commit | Line | Data |
---|---|---|
5cb5a6ff LP |
1 | /*-*- Mode: C; c-basic-offset: 8 -*-*/ |
2 | ||
3 | #include "name.h" | |
4 | #include "snapshot.h" | |
5 | ||
034c6ed7 | 6 | static void snapshot_done(Name *n) { |
5cb5a6ff LP |
7 | Snapshot *s = SNAPSHOT(n); |
8 | ||
9 | assert(s); | |
10 | ||
11 | /* Nothing here for now */ | |
12 | } | |
13 | ||
034c6ed7 LP |
14 | static NameActiveState snapshot_active_state(Name *n) { |
15 | return SNAPSHOT(n)->state == SNAPSHOT_DEAD ? NAME_INACTIVE : NAME_ACTIVE; | |
16 | } | |
17 | ||
5cb5a6ff LP |
18 | const NameVTable snapshot_vtable = { |
19 | .suffix = ".snapshot", | |
20 | ||
034c6ed7 | 21 | .done = snapshot_done, |
5cb5a6ff | 22 | |
034c6ed7 | 23 | .active_state = snapshot_active_state |
5cb5a6ff | 24 | }; |