chiark / gitweb /
sysv-generator: properly add Makefile symlink
[elogind.git] / src / core / unit.h
index 0e45229d7b59f2cb741300a7fa75f5bb408b0c22..19fa2f058580d082693dd75f738bd32104be8a17 100644 (file)
@@ -284,7 +284,7 @@ struct UnitVTable {
          * that */
         size_t exec_runtime_offset;
 
-        /* The name of the configuration file section with the private settings of this unit*/
+        /* The name of the configuration file section with the private settings of this unit */
         const char *private_section;
 
         /* Config file sections this unit type understands, separated
@@ -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;