From 68db7a3bd9b2f8640c7297382b6d20eb995f7e1e Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Mon, 27 Jan 2014 00:57:34 -0500 Subject: core: add function to tell when job will time out Things will continue when either the job timeout or the unit timeout is reached. Add functionality to access that info. --- src/core/unit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/unit.h') diff --git a/src/core/unit.h b/src/core/unit.h index 45816eae35..c686aeccef 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -410,6 +410,8 @@ struct UnitVTable { /* Called whenever CLOCK_REALTIME made a jump */ void (*time_change)(Unit *u); + int (*get_timeout)(Unit *u, uint64_t *timeout); + /* This is called for each unit type and should be used to * enumerate existing devices and load them. However, * everything that is loaded here should still stay in -- cgit v1.2.3-54-g00ecf