summaryrefslogtreecommitdiff
path: root/unit.h
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.h
parentaf5bc85dc1297079edc9890861aaa38de0ec30df (diff)
swap: add .swap unit type
Diffstat (limited to 'unit.h')
-rw-r--r--unit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/unit.h b/unit.h
index 689dc00e31..72a742ca4a 100644
--- a/unit.h
+++ b/unit.h
@@ -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);