summaryrefslogtreecommitdiff
path: root/swap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-13 03:07:16 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-13 03:07:16 +0200
commit6e2ef85b2572af82a0ce035516d65218bdc80fa4 (patch)
tree3c677c6168301ddd8762186bac7f8bcf1288f46c /swap.h
parentafb757b1a8a416b3c692728330a266b3915eef41 (diff)
units: rework automatic dependency logic between automounts, mounts, sockets, swaps
Diffstat (limited to 'swap.h')
-rw-r--r--swap.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/swap.h b/swap.h
index d8692509b6..758cdbd31d 100644
--- a/swap.h
+++ b/swap.h
@@ -47,14 +47,17 @@ struct Swap {
bool from_proc_swaps_only:1;
bool found_in_proc_swaps:1;
- MountState state, deserialized_state;
+ SwapState state, deserialized_state;
};
extern const UnitVTable swap_vtable;
+int swap_add_one(Manager *m, const char *what, bool no_auto, int prio, bool from_proc_swap);
+
+int swap_add_one_mount_link(Swap *s, Mount *m);
+
const char* swap_state_to_string(SwapState i);
SwapState swap_state_from_string(const char *s);
-extern int swap_add_one(Manager *m, const char *what, bool no_auto, int prio, bool from_proc_swap);
#endif