diff options
author | Max Kellermann <max@musicpd.org> | 2017-02-20 12:38:27 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-02-25 10:26:33 +0100 |
commit | e48ea5f23a6a1601e8eeb6d0594f8f0d89f47fdb (patch) | |
tree | 1d2c128e9b6588b35aa4a94eedd9f83d873c42f4 /src/Instance.hxx | |
parent | a99bab935adc5ab82c3d8882047e50d6dad4502c (diff) |
Instance: add method FindPartition()
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r-- | src/Instance.hxx | 7 |
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 |