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