summaryrefslogtreecommitdiffstats
path: root/mbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'mbox.h')
-rw-r--r--mbox.h6
1 files changed, 5 insertions, 1 deletions
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 @@ typedef int (*mboxd_mbox_handler)(struct mbox_context *, union mbox_regs *,
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;
OpenPOWER on IntegriCloud