]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/swap.h
core: undo the dependency inversion between unit.h and all unit types
[thirdparty/systemd.git] / src / core / swap.h
index ec29ccfa6e2aa011723865967fdf6e454d720d8c..fdb14e667a3e3a3e37cb221787115e133517178a 100644 (file)
@@ -9,6 +9,7 @@
 ***/
 
 #include "libudev.h"
+#include "unit.h"
 
 typedef struct Swap Swap;
 
@@ -95,3 +96,5 @@ SwapExecCommand swap_exec_command_from_string(const char *s) _pure_;
 
 const char* swap_result_to_string(SwapResult i) _const_;
 SwapResult swap_result_from_string(const char *s) _pure_;
+
+DEFINE_CAST(SWAP, Swap);