Switch to side-by-side view
--- a/src/upmpdutils.cxx +++ b/src/upmpdutils.cxx @@ -53,7 +53,7 @@ #include "mpdcli.hxx" #include "smallut.h" - +#include "conftree.h" using namespace std; using namespace UPnPP; @@ -395,3 +395,12 @@ } return true; } + +bool configBool(ConfSimple *conf, const std::string& nm) +{ + string val; + if (conf && conf->get(nm, val)) { + return stringToBool(val); + } + return false; +}