ItemUpdater: Create dbus object with version id

Use the same version id as the version manager. For that
query the object paths using the mapper and determine if
an item updater object has already been created.

Note: The mapper currently return the BMC version as well
since the interface is the same. To avoid this, a Host-only
interface can be used once those are added, and also
an association once the association work is finalized.

Closes: openbmc/openbmc#1277

Change-Id: I66711ac92a28b7f7ed37006ad6f40de86be1e54c
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/configure.ac b/configure.ac
index 838566e..de7c5b7 100755
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,9 @@
 AS_IF([test "x$SOFTWARE_OBJPATH" == "x"], [SOFTWARE_OBJPATH="/xyz/openbmc_project/software"])
 AC_DEFINE_UNQUOTED([SOFTWARE_OBJPATH], ["$SOFTWARE_OBJPATH"], [The software manager Dbus root])
 
+AC_DEFINE(VERSION_IFACE, "xyz.openbmc_project.Software.Version",
+    [The software version manager interface])
+
 AC_DEFINE(BUSNAME_UPDATER, "org.open_power.Software.Host.Updater",
     [The item updater DBus busname to own.])
 
@@ -62,6 +65,13 @@
 AS_IF([test "x$TOC_FILE" == "x"], [TOC_FILE="/tmp/pnor/pnor.toc"])
 AC_DEFINE_UNQUOTED([TOC_FILE], ["$TOC_FILE"], [The path to the pnor toc file])
 
+AC_DEFINE(MAPPER_BUSNAME, "xyz.openbmc_project.ObjectMapper",
+    [The object mapper busname.])
+AC_DEFINE(MAPPER_PATH, "/xyz/openbmc_project/object_mapper",
+    [The object mapper path.])
+AC_DEFINE(MAPPER_INTERFACE, "xyz.openbmc_project.ObjectMapper",
+    [The object mapper interface.])
+
 AC_CONFIG_FILES([Makefile test/Makefile])
 AC_OUTPUT