summaryrefslogtreecommitdiff
path: root/src/core/swap.h
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2018-05-15 14:17:34 -0400
committerFelipe Sateler <fsateler@debian.org>2018-05-15 14:24:34 -0400
commit57b7a260c20f58a5c5d9c1e1aacde50646863919 (patch)
tree2c0321e30ee80d5502024b30d09aa99405660ec5 /src/core/swap.h
parent90a8f0b9a999b4bbb5110066266fd6d807e04aa3 (diff)
downloadsystemd-57b7a260c20f58a5c5d9c1e1aacde50646863919.tar.gz
core: undo the dependency inversion between unit.h and all unit types
Diffstat (limited to 'src/core/swap.h')
-rw-r--r--src/core/swap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/swap.h b/src/core/swap.h
index ec29ccfa6e..fdb14e667a 100644
--- a/src/core/swap.h
+++ b/src/core/swap.h
@@ -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);