Add Manager class
This class will hold the IBM interface objects.
It has callbacks on the interfaces added and removed
signals for the actual logging entries so it knows when
to add and remove the IBM interface objects.
It can hold multiple interface objects per logging entry
by using a map of std::experimental::any objects.
Future commits will add more functionality, such as doing
the actual creation of the interface objects and checking
for existing error logs entries on startup.
Change-Id: I1feef9e3416380a0bc9f94e470204eeac5464200
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/configure.ac b/configure.ac
index 04100d9..6c88d68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,11 +10,23 @@
AC_PROG_INSTALL
AC_PROG_MAKE_SET
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
+ AC_MSG_ERROR(["Requires openbmc/phosphor-dbus-interfaces package."]))
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
+ AC_MSG_ERROR(["Requires openbmc/sdbusplus package."]))
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
+ AC_MSG_ERROR(["Requires openbmc/phosphor-logging package."]))
+
# Checks for typedefs, structures, and compiler characteristics.
AX_CXX_COMPILE_STDCXX_14([noext])
AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
LT_INIT
+AC_DEFINE(LOGGING_PATH, "/xyz/openbmc_project/logging",
+ [The xyz log manager DBus object path])
+AC_DEFINE(LOGGING_IFACE, "xyz.openbmc_project.Logging.Entry",
+ [The xyz log entry interface])
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT