presence: Split config filename from path
Change-Id: I295807c724ce849c43376998330ddd1eaa939fe5
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/presence/json_config.hpp b/presence/json_config.hpp
index a369bd5..206b290 100644
--- a/presence/json_config.hpp
+++ b/presence/json_config.hpp
@@ -21,6 +21,10 @@
namespace fs = std::filesystem;
using json = nlohmann::json;
+
+constexpr auto jsonFileName = "config.json";
+constexpr auto jsonOverridePath = "/etc/phosphor-fan-presence/presence";
+
using policies = std::vector<std::unique_ptr<RedundancyPolicy>>;
constexpr auto fanPolicyFanPos = 0;
@@ -49,9 +53,9 @@
* Constructor
* Parses and populates the fan presence policies from a json file
*
- * @param[in] jsonFile - json configuration file
+ * @param[in] jsonConfigPath - json configuration path
*/
- explicit JsonConfig(const std::string& jsonFile);
+ explicit JsonConfig(const std::string& jsonConfigPath);
/**
* @brief Get the json config based fan presence policies