1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00
systemd/snapshot.c
2010-01-26 04:18:44 +01:00

25 lines
503 B
C

/*-*- 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
};