From 4b9b7b04a1a8ff355b2f448a551144d7b1fe721c Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Sat, 27 Apr 2013 14:47:03 +0100 Subject: sbuild::chroot::facet::storage: Include setup_lock and get_path methods --- lib/sbuild/chroot/facet/storage.cc | 7 +++++++ lib/sbuild/chroot/facet/storage.h | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) (limited to 'lib') diff --git a/lib/sbuild/chroot/facet/storage.cc b/lib/sbuild/chroot/facet/storage.cc index 2ad6e4f1..a54167e7 100644 --- a/lib/sbuild/chroot/facet/storage.cc +++ b/lib/sbuild/chroot/facet/storage.cc @@ -38,6 +38,13 @@ namespace sbuild { } + void + storage::setup_lock(chroot::setup_type type, + bool lock, + int status) + { + } + } } } diff --git a/lib/sbuild/chroot/facet/storage.h b/lib/sbuild/chroot/facet/storage.h index ddcc166f..df70b33c 100644 --- a/lib/sbuild/chroot/facet/storage.h +++ b/lib/sbuild/chroot/facet/storage.h @@ -54,6 +54,23 @@ namespace sbuild public: /// The destructor. virtual ~storage (); + + /** + * Get the path to the chroot. This is the absolute path to the + * root of the chroot, and is typically the same as the mount + * location and location concatenated together, but is overridden + * by the chroot type if required. + * + * @returns the path. + */ + virtual std::string + get_path () const = 0; + + virtual void + setup_lock(chroot::setup_type type, + bool lock, + int status); + }; } -- cgit v1.2.3