summaryrefslogtreecommitdiff
path: root/unit.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>2010-05-09 18:44:11 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-09 18:46:10 +0200
commit07b0b134d3076fe223d6e15959b6081a74b56792 (patch)
treec768259278d9436d553587c284be22d32f788175 /unit.c
parentaf5bc85dc1297079edc9890861aaa38de0ec30df (diff)
swap: add .swap unit type
Diffstat (limited to 'unit.c')
-rw-r--r--unit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/unit.c b/unit.c
index b69b6e3620..dea6b8bf76 100644
--- a/unit.c
+++ b/unit.c
@@ -47,7 +47,8 @@ const UnitVTable * const unit_vtable[_UNIT_TYPE_MAX] = {
[UNIT_DEVICE] = &device_vtable,
[UNIT_MOUNT] = &mount_vtable,
[UNIT_AUTOMOUNT] = &automount_vtable,
- [UNIT_SNAPSHOT] = &snapshot_vtable
+ [UNIT_SNAPSHOT] = &snapshot_vtable,
+ [UNIT_SWAP] = &swap_vtable
};
Unit *unit_new(Manager *m) {
@@ -1839,7 +1840,8 @@ static const char* const unit_type_table[_UNIT_TYPE_MAX] = {
[UNIT_DEVICE] = "device",
[UNIT_MOUNT] = "mount",
[UNIT_AUTOMOUNT] = "automount",
- [UNIT_SNAPSHOT] = "snapshot"
+ [UNIT_SNAPSHOT] = "snapshot",
+ [UNIT_SWAP] = "swap"
};
DEFINE_STRING_TABLE_LOOKUP(unit_type, UnitType);