X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Funit.h;fp=src%2Fcore%2Funit.h;h=19fa2f058580d082693dd75f738bd32104be8a17;hp=f6587ba5f0a80d89a702512e8fbebc1ba518afbd;hb=0faacd470dfbd24f4c6504da6f04213aa05f9d19;hpb=17d1f37d0dbd2d78b8866e1350c83a9755105144 diff --git a/src/core/unit.h b/src/core/unit.h index f6587ba5f..19fa2f058 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -396,6 +396,10 @@ struct UnitVTable { /* Type specific cleanups. */ void (*shutdown)(Manager *m); + /* If this function is set and return false all jobs for units + * of this type will immediately fail. */ + bool (*supported)(Manager *m); + /* The interface name */ const char *bus_interface;