summaryrefslogtreecommitdiffstats
path: root/ui/twin
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-04-10 12:19:13 +1000
committerGeoff Levand <geoff@infradead.org>2013-04-10 10:49:01 -0700
commitee86a0bd989511319adf3467b41b5b2e1f486aa6 (patch)
tree43ecd9479052388dc6bd3dae697fc2a9f6962d42 /ui/twin
parent6b2d8ff75f1b9554d01dc6872b4498d660827e58 (diff)
downloadtalos-petitboot-ee86a0bd989511319adf3467b41b5b2e1f486aa6.tar.gz
talos-petitboot-ee86a0bd989511319adf3467b41b5b2e1f486aa6.zip
lib/types: Create common file for type definitions
The device and boot_option types are defined in pb-protocol.h, but aren't really specific to the procotol. This means a lot of non-messaging-related files are #including the protocol definitions unnecessarily. This change separates the types out into lib/types/types.h. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'ui/twin')
-rw-r--r--ui/twin/pbt-client.c2
-rw-r--r--ui/twin/pbt-menu.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/ui/twin/pbt-client.c b/ui/twin/pbt-client.c
index ed12e5a..6a4d863 100644
--- a/ui/twin/pbt-client.c
+++ b/ui/twin/pbt-client.c
@@ -23,6 +23,8 @@
#include <assert.h>
#include <string.h>
+#include <pb-protocol/pb-protocol.h>
+
#include "pbt-client.h"
#include "log/log.h"
diff --git a/ui/twin/pbt-menu.h b/ui/twin/pbt-menu.h
index 7547f16..cb696ea 100644
--- a/ui/twin/pbt-menu.h
+++ b/ui/twin/pbt-menu.h
@@ -19,7 +19,7 @@
#define _PBT_MENU_H
#include "list/list.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "pbt-scr.h"
OpenPOWER on IntegriCloud