summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2013-04-27 14:47:03 +0100
committerRoger Leigh <rleigh@debian.org>2013-04-27 18:00:04 +0100
commit4b9b7b04a1a8ff355b2f448a551144d7b1fe721c (patch)
tree61f841dc6e9bf508373b5f4336e3cac0cda7e39b /lib
parente520708119bc5bbcb4316e357ba20d364d86f5da (diff)
downloadschroot-4b9b7b04a1a8ff355b2f448a551144d7b1fe721c.tar.gz
sbuild::chroot::facet::storage: Include setup_lock and get_path methods
Diffstat (limited to 'lib')
-rw-r--r--lib/sbuild/chroot/facet/storage.cc7
-rw-r--r--lib/sbuild/chroot/facet/storage.h17
2 files changed, 24 insertions, 0 deletions
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);
+
};
}