summaryrefslogtreecommitdiff
path: root/src/Instance.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-20 12:38:27 +0100
committerMax Kellermann <max@musicpd.org>2017-02-25 10:26:33 +0100
commite48ea5f23a6a1601e8eeb6d0594f8f0d89f47fdb (patch)
tree1d2c128e9b6588b35aa4a94eedd9f83d873c42f4 /src/Instance.hxx
parenta99bab935adc5ab82c3d8882047e50d6dad4502c (diff)
Instance: add method FindPartition()
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r--src/Instance.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx
index 45e81cf81..dfc3a79e9 100644
--- a/src/Instance.hxx
+++ b/src/Instance.hxx
@@ -106,6 +106,13 @@ struct Instance final
idle_monitor.OrMask(mask);
}
+ /**
+ * Find a #Partition with the given name. Returns nullptr if
+ * no such partition was found.
+ */
+ gcc_pure
+ Partition *FindPartition(const char *name);
+
#ifdef ENABLE_DATABASE
/**
* Returns the global #Database instance. May return nullptr