console-server: Respect DBus init failure
Given that the DBus interface is required by other OpenBMC applications,
don't ignore a failure to initialize it.
It's always possible to add a switch down the track to avoid
initializing the DBus interfaces, if desired.
Change-Id: I8aecf1a1cb06d021f374eaf0fd6893ddf3a9cc3c
Co-developed-by: Alexander Hansen <alexander.hansen@9elements.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/console-server.h b/console-server.h
index 3fd572c..3dc445e 100644
--- a/console-server.h
+++ b/console-server.h
@@ -239,8 +239,8 @@
int write_buf_to_fd(int fd, const uint8_t *buf, size_t len);
/* console-dbus API */
-void dbus_init(struct console *console,
- struct config *config __attribute__((unused)));
+int dbus_init(struct console *console,
+ struct config *config __attribute__((unused)));
/* socket-handler API */
int dbus_create_socket_consumer(struct console *console);