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.h | |
parent | af5bc85dc1297079edc9890861aaa38de0ec30df (diff) |
swap: add .swap unit type
Diffstat (limited to 'unit.h')
-rw-r--r-- | unit.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -61,6 +61,7 @@ enum UnitType { UNIT_AUTOMOUNT, UNIT_SNAPSHOT, UNIT_TIMER, + UNIT_SWAP, _UNIT_TYPE_MAX, _UNIT_TYPE_INVALID = -1 }; @@ -194,6 +195,7 @@ struct Meta { #include "mount.h" #include "automount.h" #include "snapshot.h" +#include "swap.h" union Unit { Meta meta; @@ -205,6 +207,7 @@ union Unit { Mount mount; Automount automount; Snapshot snapshot; + Swap swap; }; struct UnitVTable { @@ -335,6 +338,7 @@ DEFINE_CAST(DEVICE, Device); DEFINE_CAST(MOUNT, Mount); DEFINE_CAST(AUTOMOUNT, Automount); DEFINE_CAST(SNAPSHOT, Snapshot); +DEFINE_CAST(SWAP, Swap); Unit *unit_new(Manager *m); void unit_free(Unit *u); |