summaryrefslogtreecommitdiff
path: root/src/storage/CompositeStorage.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-27 18:51:28 +0100
committerMax Kellermann <max@duempel.org>2014-02-27 20:49:13 +0100
commit2a16fc74fd354484a70efcc5b6dbfcdd73ee5f5a (patch)
tree787b0efd5f39ca58714c4a3b4ab5d46ad75e8156 /src/storage/CompositeStorage.hxx
parentf65254680a8521631ecdd722ff522f574da20d8f (diff)
CompositeStorage: add method GetMount()
Diffstat (limited to 'src/storage/CompositeStorage.hxx')
-rw-r--r--src/storage/CompositeStorage.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/storage/CompositeStorage.hxx b/src/storage/CompositeStorage.hxx
index 9c10f76f4..3daa45ee3 100644
--- a/src/storage/CompositeStorage.hxx
+++ b/src/storage/CompositeStorage.hxx
@@ -96,6 +96,17 @@ public:
virtual ~CompositeStorage();
/**
+ * Get the #Storage at the specified mount point. Returns
+ * nullptr if the given URI is not a mount point.
+ *
+ * The returned pointer is unprotected. No other thread is
+ * allowed to unmount the given mount point while the return
+ * value is being used.
+ */
+ gcc_pure gcc_nonnull_all
+ Storage *GetMount(const char *uri);
+
+ /**
* Call the given function for each mounted storage, including
* the root storage. Passes mount point URI and the a const
* Storage reference to the function.