1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-15 07:24:00 +03:00
systemd/snapshot.c

25 lines
503 B
C
Raw Normal View History

/*-*- Mode: C; c-basic-offset: 8 -*-*/
2010-01-26 23:39:06 +03:00
#include "unit.h"
#include "snapshot.h"
2010-01-26 23:39:06 +03:00
static void snapshot_done(Unit *u) {
Snapshot *s = SNAPSHOT(u);
assert(s);
/* Nothing here for now */
}
2010-01-26 23:39:06 +03:00
static UnitActiveState snapshot_active_state(Unit *u) {
return SNAPSHOT(u)->state == SNAPSHOT_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
}
2010-01-26 23:39:06 +03:00
const UnitVTable snapshot_vtable = {
.suffix = ".snapshot",
.done = snapshot_done,
.active_state = snapshot_active_state
};