aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigData.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 12:25:08 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:49 +0200
commit81c3224076da6ad727debc6bab8a5422f7322451 (patch)
tree1da1912caa6c7ff863f7affeafae22e9e6004e8f /src/ConfigData.hxx
parent7a1d466fb279659048e80e2853a7906c90d73235 (diff)
downloadmpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.gz
mpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.xz
mpd-81c3224076da6ad727debc6bab8a5422f7322451.zip
OutputPlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r--src/ConfigData.hxx9
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) {