diff options
author | Max Kellermann <max@duempel.org> | 2013-08-04 12:25:08 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-04 14:07:49 +0200 |
commit | 81c3224076da6ad727debc6bab8a5422f7322451 (patch) | |
tree | 1da1912caa6c7ff863f7affeafae22e9e6004e8f /src/ConfigData.hxx | |
parent | 7a1d466fb279659048e80e2853a7906c90d73235 (diff) | |
download | mpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.gz mpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.xz mpd-81c3224076da6ad727debc6bab8a5422f7322451.zip |
OutputPlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r-- | src/ConfigData.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 5e13d073c..d6b024b9b 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -80,6 +80,15 @@ struct config_param { config_param &operator=(const config_param &) = delete; + /** + * Determine if this is a "null" instance, i.e. an empty + * object that was synthesized and not loaded from a + * configuration file. + */ + bool IsNull() const { + return line == unsigned(-1); + } + gcc_nonnull_all void AddBlockParam(const char *_name, const char *_value, int _line=-1) { |