summaryrefslogtreecommitdiffstats
path: root/readd.cpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2016-12-19 13:47:10 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-01-13 15:56:37 -0500
commitb9e2b07eeb324f3cc8cf037986e5a43a09464419 (patch)
treecd05064837298fd2a8fdc61a52b09e901bf75649 /readd.cpp
parent6ae03303d54bad62a749f3a01c30d19230f55194 (diff)
downloadphosphor-hwmon-b9e2b07eeb324f3cc8cf037986e5a43a09464419.tar.gz
phosphor-hwmon-b9e2b07eeb324f3cc8cf037986e5a43a09464419.zip
Add config options
Obtain the DBus service name prefix and sensors namespace root path from the configure script. Change-Id: I5c48882b62b09a466b3b7b30b3935d65ccc58326 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'readd.cpp')
-rw-r--r--readd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/readd.cpp b/readd.cpp
index 0c611b6..d8ad098 100644
--- a/readd.cpp
+++ b/readd.cpp
@@ -17,6 +17,7 @@
#include <memory>
#include "argument.hpp"
#include "mainloop.hpp"
+#include "config.h"
static void exit_with_error(const char* err, char** argv)
{
@@ -41,7 +42,10 @@ int main(int argc, char** argv)
// Finished getting options out, so cleanup the parser.
options.reset();
- MainLoop loop(path);
+ MainLoop loop(
+ path,
+ BUSNAME_PREFIX,
+ SENSOR_ROOT);
loop.run();
return 0;
OpenPOWER on IntegriCloud