diff options
Diffstat (limited to 'src/core/snapshot.c')
-rw-r--r-- | src/core/snapshot.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/core/snapshot.c b/src/core/snapshot.c index 336ff20f84..ba3135f401 100644 --- a/src/core/snapshot.c +++ b/src/core/snapshot.c @@ -21,11 +21,15 @@ #include <errno.h> -#include "unit.h" +#include "alloc-util.h" +#include "bus-common-errors.h" +#include "dbus-snapshot.h" +#include "parse-util.h" +#include "parse-util.h" #include "snapshot.h" +#include "string-util.h" #include "unit-name.h" -#include "dbus-snapshot.h" -#include "bus-common-errors.h" +#include "unit.h" static const UnitActiveState state_translation_table[_SNAPSHOT_STATE_MAX] = { [SNAPSHOT_DEAD] = UNIT_INACTIVE, @@ -272,13 +276,6 @@ void snapshot_remove(Snapshot *s) { unit_add_to_cleanup_queue(UNIT(s)); } -static const char* const snapshot_state_table[_SNAPSHOT_STATE_MAX] = { - [SNAPSHOT_DEAD] = "dead", - [SNAPSHOT_ACTIVE] = "active" -}; - -DEFINE_STRING_TABLE_LOOKUP(snapshot_state, SnapshotState); - const UnitVTable snapshot_vtable = { .object_size = sizeof(Snapshot), |