chiark / gitweb /
snapshot: implement snapshot unit logic
[elogind.git] / unit.h
diff --git a/unit.h b/unit.h
index 338a58b00981c1d79e724fbaa99f6c5a5e677171..4dc53a1a687ca6ab1425035b9515753a01967d0e 100644 (file)
--- a/unit.h
+++ b/unit.h
@@ -54,13 +54,13 @@ typedef enum KillMode {
 
 enum UnitType {
         UNIT_SERVICE = 0,
-        UNIT_TIMER,
         UNIT_SOCKET,
         UNIT_TARGET,
         UNIT_DEVICE,
         UNIT_MOUNT,
         UNIT_AUTOMOUNT,
         UNIT_SNAPSHOT,
+        UNIT_TIMER,
         _UNIT_TYPE_MAX,
         _UNIT_TYPE_INVALID = -1
 };
@@ -209,6 +209,9 @@ struct UnitVTable {
         /* Instances make no sense for this type */
         bool no_instances:1;
 
+        /* Execlude this type from snapshots */
+        bool no_snapshots:1;
+
         /* This should reset all type-specific variables. This should
          * not allocate memory, and is either called with 0
          * initialized data, or with data left from done() */