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>
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 @@
// Finished getting options out, so cleanup the parser.
options.reset();
- MainLoop loop(path);
+ MainLoop loop(
+ path,
+ BUSNAME_PREFIX,
+ SENSOR_ROOT);
loop.run();
return 0;