1 /*-*- Mode: C; c-basic-offset: 8 -*-*/
6 static NameActiveState snapshot_active_state(Name *n) {
7 return SNAPSHOT(n)->state == SNAPSHOT_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
10 static void snapshot_free_hook(Name *n) {
11 Snapshot *s = SNAPSHOT(n);
15 /* Nothing here for now */
18 const NameVTable snapshot_vtable = {
19 .suffix = ".snapshot",
28 .active_state = snapshot_active_state,
30 .free_hook = snapshot_free_hook