Create OCC pass-through objects

Create OCC pass-through d-bus objects when corresponding CPU objects are
created in the inventory.

Resolves openbmc/openbmc#1450.

Change-Id: I8da879f51ebef8dcc3d25358def81c5e0dce0617
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/app.cpp b/app.cpp
index 0ffe711..4b73e51 100644
--- a/app.cpp
+++ b/app.cpp
@@ -6,7 +6,19 @@
 {
     try
     {
-        open_power::occ::pass_through::run();
+        auto bus = sdbusplus::bus::new_default();
+        bus.request_name(OCC_PASS_THROUGH_BUSNAME);
+
+        sdbusplus::server::manager::manager objManager(bus,
+                                                       OCC_PASS_THROUGH_ROOT);
+
+        open_power::occ::pass_through::manager::Manager mgr(bus);
+
+        while (true)
+        {
+            bus.process_discard();
+            bus.wait();
+        }
     }
     catch (const std::exception& e)
     {