Read GPIO key on startup
Create class Presence which will be responsible for
determining and monitoring presence of inventory items
and updating D-Bus accordingly. With this commit
class Presence only reads the GPIO key on startup,
more to come later.
Change-Id: I647ae11d42a813a103e6d9d8922fd0f5b2155132
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/presence/main.cpp b/presence/main.cpp
index 3c7c3cf..8935568 100644
--- a/presence/main.cpp
+++ b/presence/main.cpp
@@ -5,6 +5,7 @@
using namespace phosphor::logging;
using namespace phosphor::gpio;
+using namespace phosphor::gpio::presence;
int main(int argc, char* argv[])
{
@@ -36,6 +37,7 @@
std::cerr << "Device path argument required\n";
options.usage(argv);
}
+ Presence presence(inventory, path, std::stoul(key), options["name"]);
return 0;
}