]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/unit.h
core: add function to tell when job will time out
[thirdparty/systemd.git] / src / core / unit.h
index 45816eae353b94fe674c9a387f7f9c17e8c01ca6..c686aeccefda52913f5dde6d3d09ec9fd406ea0c 100644 (file)
@@ -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