Change to allow duplicated mount/umount API calls for lockscreen
[platform/core/security/ode.git] / server / engine / encryption / ext4-engine.h
index dd69b70..f1aecec 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <vector>
 #include <string>
+#include <atomic>
 
 #include "progress-bar.h"
 
@@ -48,6 +49,7 @@ public:
 
        void mount(const data &key, unsigned int options);
        void umount();
+       bool isMounted();
 
        void encrypt(const data &key, unsigned int options);
        void decrypt(const data &key, unsigned int options);
@@ -62,6 +64,7 @@ public:
 private:
        std::string source, destination;
        ProgressBar progress;
+       std::atomic<bool> mounted;
 };
 
 } // namespace ode