diff --git a/include/nutconf.hpp b/include/nutconf.hpp index a3bdf7fdaf..be6218e45d 100644 --- a/include/nutconf.hpp +++ b/include/nutconf.hpp @@ -1666,6 +1666,7 @@ class UpsConfiguration : public GenericConfiguration inline std::string getChroot() const { return getStr("chroot"); } inline std::string getDriverPath() const { return getStr("driverpath"); } + inline std::string getStatePath() const { return getStr("statepath"); } // FIXME: accept it case-insensitively inline std::string getGroup() const { return getStr("group"); } inline std::string getSynchronous() const { return getStr("synchronous"); } inline std::string getUser() const { return getStr("user"); } @@ -1682,6 +1683,7 @@ class UpsConfiguration : public GenericConfiguration inline void setChroot(const std::string & path) { setStr("chroot", path); } inline void setDriverPath(const std::string & path) { setStr("driverpath", path); } + inline void setStatePath(const std::string & path) { setStr("statepath", path); } inline void setGroup(const std::string & group) { setStr("group", group); } inline void setSynchronous(const std::string & val) { setStr("synchronous", val); } inline void setUser(const std::string & user) { setStr("user", user); }