chiark / gitweb /
units: rework automatic dependency logic between automounts, mounts, sockets, swaps
[elogind.git] / swap.h
diff --git a/swap.h b/swap.h
index d8692509b69460a360483066cabca53881f679bf..758cdbd31d9822f034787e7dc17e3e1fdeac008b 100644 (file)
--- 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