chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hostname: drop invalid chars when reading hostname from disk
[elogind.git]
/
unit.h
diff --git
a/unit.h
b/unit.h
index 21627ef4d49b05ea77a371251dba34f487d05655..72a742ca4a1f4db24b5580b9f0005d722a4da87e 100644
(file)
--- a/
unit.h
+++ b/
unit.h
@@
-61,6
+61,7
@@
enum UnitType {
UNIT_AUTOMOUNT,
UNIT_SNAPSHOT,
UNIT_TIMER,
UNIT_AUTOMOUNT,
UNIT_SNAPSHOT,
UNIT_TIMER,
+ UNIT_SWAP,
_UNIT_TYPE_MAX,
_UNIT_TYPE_INVALID = -1
};
_UNIT_TYPE_MAX,
_UNIT_TYPE_INVALID = -1
};
@@
-170,7
+171,7
@@
struct Meta {
LIST_FIELDS(Meta, gc_queue);
/* Used during GC sweeps */
LIST_FIELDS(Meta, gc_queue);
/* Used during GC sweeps */
-
int
gc_marker;
+
unsigned
gc_marker;
/* If we go down, pull down everything that depends on us, too */
bool recursive_stop;
/* If we go down, pull down everything that depends on us, too */
bool recursive_stop;
@@
-194,6
+195,7
@@
struct Meta {
#include "mount.h"
#include "automount.h"
#include "snapshot.h"
#include "mount.h"
#include "automount.h"
#include "snapshot.h"
+#include "swap.h"
union Unit {
Meta meta;
union Unit {
Meta meta;
@@
-205,6
+207,7
@@
union Unit {
Mount mount;
Automount automount;
Snapshot snapshot;
Mount mount;
Automount automount;
Snapshot snapshot;
+ Swap swap;
};
struct UnitVTable {
};
struct UnitVTable {
@@
-335,6
+338,7
@@
DEFINE_CAST(DEVICE, Device);
DEFINE_CAST(MOUNT, Mount);
DEFINE_CAST(AUTOMOUNT, Automount);
DEFINE_CAST(SNAPSHOT, Snapshot);
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);
Unit *unit_new(Manager *m);
void unit_free(Unit *u);