mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-20 21:50:23 +07:00
25 lines
503 B
C
25 lines
503 B
C
/*-*- Mode: C; c-basic-offset: 8 -*-*/
|
|
|
|
#include "unit.h"
|
|
#include "snapshot.h"
|
|
|
|
static void snapshot_done(Unit *u) {
|
|
Snapshot *s = SNAPSHOT(u);
|
|
|
|
assert(s);
|
|
|
|
/* Nothing here for now */
|
|
}
|
|
|
|
static UnitActiveState snapshot_active_state(Unit *u) {
|
|
return SNAPSHOT(u)->state == SNAPSHOT_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
|
|
}
|
|
|
|
const UnitVTable snapshot_vtable = {
|
|
.suffix = ".snapshot",
|
|
|
|
.done = snapshot_done,
|
|
|
|
.active_state = snapshot_active_state
|
|
};
|