protocol: Add get_info
Change-Id: Ie3338714813bb65f5d37fcd046dd5bebc0ba21f0
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/mbox.h b/mbox.h
index 19d0a3f..3676825 100644
--- a/mbox.h
+++ b/mbox.h
@@ -8,6 +8,8 @@
#include <systemd/sd-bus.h>
#include <poll.h>
#include <stdbool.h>
+
+#include "protocol.h"
#include "vpnor/mboxd_pnor_partition_table.h"
enum api_version {
@@ -136,9 +138,11 @@
struct mbox_msg *);
struct mbox_context {
+ enum api_version version;
+ const struct protocol_ops *protocol;
+
/* System State */
enum mbox_state state;
- enum api_version version;
struct pollfd fds[TOTAL_FDS];
sd_bus *bus;
bool terminate;