chiark / gitweb /
unit: handle nicely of certain unit types are not supported on specific systems
[elogind.git] / src / core / unit.h
index f6587ba5f0a80d89a702512e8fbebc1ba518afbd..19fa2f058580d082693dd75f738bd32104be8a17 100644 (file)
@@ -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;