chiark / gitweb /
swap: add .swap unit type
[elogind.git] / manager.h
index 0a09430f56b25b38be238aecbdd43987c1b0abf2..b6b6926bd8f526b4525f7c14940f3d028fd71be7 100644 (file)
--- a/manager.h
+++ b/manager.h
@@ -99,6 +99,7 @@ struct Watch {
 
 #define SPECIAL_LOCAL_FS_TARGET "local-fs.target"
 #define SPECIAL_REMOTE_FS_TARGET "remote-fs.target"
+#define SPECIAL_SWAP_TARGET "swap.target"
 #define SPECIAL_NETWORK_TARGET "network.target"
 #define SPECIAL_NSS_LOOKUP_TARGET "nss-lookup.target"     /* LSB's $named */
 #define SPECIAL_RPCBIND_TARGET "rpcbind.target"           /* LSB's $portmap */
@@ -187,6 +188,9 @@ struct Manager {
         FILE *proc_self_mountinfo;
         Watch mount_watch;
 
+        /* Data specific to the swap filesystem */
+        FILE *proc_swaps;
+
         /* Data specific to the D-Bus subsystem */
         DBusConnection *api_bus, *system_bus;
         Set *subscribed;