summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-11-17 10:33:22 +0100
committerLennart Poettering <lennart@poettering.net>2017-11-20 10:57:41 +0100
commit6d86f4bd11c2cfaadc924a8a1ac04b0b463b8036 (patch)
tree5e877a0aa0c51ee2ce22ddd243d81fe06f709fd6 /src/basic
parent9a9a4f10e96f602cb7c19bbf95f7aa8ce632dad3 (diff)
downloadsystemd-6d86f4bd11c2cfaadc924a8a1ac04b0b463b8036.tar.gz
analyze: add new "calendar" command
This little new command can parse, validate, normalize calendar events, and calculate when they will elapse next. This should be useful for anyone writing calendar events and who'd like to validate the expression before running them as timer units.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/calendarspec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/calendarspec.h b/src/basic/calendarspec.h
index d2a19dd7dd..124f7f5880 100644
--- a/src/basic/calendarspec.h
+++ b/src/basic/calendarspec.h
@@ -61,3 +61,5 @@ int calendar_spec_to_string(const CalendarSpec *spec, char **p);
int calendar_spec_from_string(const char *p, CalendarSpec **spec);
int calendar_spec_next_usec(const CalendarSpec *spec, usec_t usec, usec_t *next);
+
+DEFINE_TRIVIAL_CLEANUP_FUNC(CalendarSpec*, calendar_spec_free);