From: Aleksey Novikov Date: Wed, 18 May 2016 12:11:02 +0000 (+0300) Subject: - add isDefault method to the Filesystem class X-Git-Tag: v0.3.3~1^2~5 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=65b2eb915f172b5fab6595dfd3aada84ec371aa2;p=thirdparty%2Fsnapper.git - add isDefault method to the Filesystem class --- diff --git a/snapper/Filesystem.cc b/snapper/Filesystem.cc index 48d1261c..505c629e 100644 --- a/snapper/Filesystem.cc +++ b/snapper/Filesystem.cc @@ -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 { diff --git a/snapper/Filesystem.h b/snapper/Filesystem.h index 023928c7..d0a912c7 100644 --- a/snapper/Filesystem.h +++ b/snapper/Filesystem.h @@ -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;