]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/timer.h
core: undo the dependency inversion between unit.h and all unit types
[thirdparty/systemd.git] / src / core / timer.h
index 728afba9bda0d481303de48696cdf3a1fc547f3b..0588a96ca2445d7d6b886cb7a9570ef895439fef 100644 (file)
@@ -10,6 +10,7 @@
 typedef struct Timer Timer;
 
 #include "calendarspec.h"
+#include "unit.h"
 
 typedef enum TimerBase {
         TIMER_ACTIVE,
@@ -77,3 +78,5 @@ TimerBase timer_base_from_string(const char *s) _pure_;
 
 const char* timer_result_to_string(TimerResult i) _const_;
 TimerResult timer_result_from_string(const char *s) _pure_;
+
+DEFINE_CAST(TIMER, Timer);