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/mainloop.cpp b/mainloop.cpp
index 012b993..8d34b18 100644
--- a/mainloop.cpp
+++ b/mainloop.cpp
@@ -22,8 +22,14 @@
#include "sysfs.hpp"
#include "mainloop.hpp"
-MainLoop::MainLoop(const std::string& path)
- : _shutdown(false), _path(path)
+MainLoop::MainLoop(
+ const std::string& path,
+ const char* prefix,
+ const char* root)
+ : _shutdown(false),
+ _path(path),
+ _prefix(prefix),
+ _root(root)
{
}