]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- add isDefault method to the Filesystem class
authorAleksey Novikov <shader@yandex.ru>
Wed, 18 May 2016 12:11:02 +0000 (15:11 +0300)
committerAleksey Novikov <shader@yandex.ru>
Wed, 18 May 2016 12:11:02 +0000 (15:11 +0300)
snapper/Filesystem.cc
snapper/Filesystem.h

index 48d1261cccd93baa34436ccf4e9258fe1b062223..505c629e7bce6dbf43bf70991f82e7a61ce09934 100644 (file)
@@ -170,6 +170,13 @@ namespace snapper
     }
 
 
+    bool
+    Filesystem::isDefault(unsigned int num) const
+    {
+       throw std::logic_error("not implemented");
+    }
+
+
     void
     Filesystem::setDefault(unsigned int num) const
     {
index 023928c7d9ade8352f56ac60f596754fe533486f..d0a912c78febff6e67d79a73611cd98aba7ad031 100644 (file)
@@ -82,6 +82,7 @@ namespace snapper
 
        virtual void cmpDirs(const SDir& dir1, const SDir& dir2, cmpdirs_cb_t cb) const;
 
+       virtual bool isDefault(unsigned int num) const;
        virtual void setDefault(unsigned int num) const;
 
        virtual void sync() const;