Skip to content

Commit

Permalink
include/nutconf.hpp: add support for STATEPATH in ups.conf [#694]
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
  • Loading branch information
jimklimov committed Dec 30, 2024
1 parent fe3d12c commit 4ba3aa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/nutconf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"); }
Expand All @@ -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); }
Expand Down

0 comments on commit 4ba3aa0

Please sign in to comment.