UNIT_SNAPSHOT,
UNIT_TIMER,
UNIT_SWAP,
+ UNIT_PATH,
_UNIT_TYPE_MAX,
_UNIT_TYPE_INVALID = -1
};
#include "automount.h"
#include "snapshot.h"
#include "swap.h"
+#include "path.h"
union Unit {
Meta meta;
Automount automount;
Snapshot snapshot;
Swap swap;
+ Path path;
};
struct UnitVTable {
DEFINE_CAST(AUTOMOUNT, Automount);
DEFINE_CAST(SNAPSHOT, Snapshot);
DEFINE_CAST(SWAP, Swap);
+DEFINE_CAST(PATH, Path);
Unit *unit_new(Manager *m);
void unit_free(Unit *u);