diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 22:25:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 22:25:17 +0100 |
commit | 6e47e797909564460fbf30372000c8a879e0f891 (patch) | |
tree | b1d0dab0ed9c720dc7707a927c24554c15f76698 /src/ConfigData.hxx | |
parent | d9ea3082fb608935c72620e272f4b3e74b2c3a44 (diff) | |
download | mpd-6e47e797909564460fbf30372000c8a879e0f891.tar.gz mpd-6e47e797909564460fbf30372000c8a879e0f891.tar.xz mpd-6e47e797909564460fbf30372000c8a879e0f891.zip |
ConfigData: move functions into the class
Diffstat (limited to 'src/ConfigData.hxx')
-rw-r--r-- | src/ConfigData.hxx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 36e3ea332..93d1092fb 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -68,8 +68,20 @@ struct config_param { config_param(int _line=-1) :value(nullptr), line(_line), used(false) {} + + gcc_nonnull_all config_param(const char *_value, int _line=-1); + ~config_param(); + + gcc_nonnull_all + void AddBlockParam(const char *_name, const char *_value, + int _line=-1) { + block_params.emplace_back(_name, _value, _line); + } + + gcc_nonnull_all gcc_pure + const block_param *GetBlockParam(const char *_name) const; #endif }; @@ -85,14 +97,6 @@ struct ConfigData { extern "C" { #endif -void -config_add_block_param(struct config_param * param, const char *name, - const char *value, int line); - -gcc_pure -const struct block_param * -config_get_block_param(const struct config_param *param, const char *name); - gcc_pure const char * config_get_block_string(const struct config_param *param, const char *name, |