summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-14 10:59:47 -0800
committerPatrick Venture <venture@google.com>2019-02-14 11:17:53 -0800
commitc19f5d4de87ea40d99403cf138c5df222a797c3c (patch)
tree5267eb48fdc4f4af982ed33315f4ac6cd03cc97c
parentf72ad441408ffb671c412c9f79795236c0ea5e54 (diff)
downloadphosphor-pid-control-c19f5d4de87ea40d99403cf138c5df222a797c3c.tar.gz
phosphor-pid-control-c19f5d4de87ea40d99403cf138c5df222a797c3c.zip
main: add json configuration path
If swampd is compiled to check for its configuration at run-time, it will check one specific path. Change-Id: I5c37ccbb2229db742c0f43b3d9ee0c368df19479 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 4ff67c5..b00b7d3 100644
--- a/main.cpp
+++ b/main.cpp
@@ -52,6 +52,9 @@ extern std::map<int64_t, PIDConf> zoneConfig;
/* The YAML converted Zone configuration. */
extern std::map<int64_t, struct ZoneConfig> zoneDetailsConfig;
+/** the swampd daemon will check for the existence of this file. */
+constexpr auto jsonConfigurationPath = "/usr/share/swampd/config.json";
+
int main(int argc, char* argv[])
{
int rc = 0;
OpenPOWER on IntegriCloud