diff options
author | Maarten Lankhorst <m.b.lankhorst@gmail.com> | 2010-05-09 18:44:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-09 18:46:10 +0200 |
commit | 07b0b134d3076fe223d6e15959b6081a74b56792 (patch) | |
tree | c768259278d9436d553587c284be22d32f788175 /unit.c | |
parent | af5bc85dc1297079edc9890861aaa38de0ec30df (diff) |
swap: add .swap unit type
Diffstat (limited to 'unit.c')
-rw-r--r-- | unit.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |