summaryrefslogtreecommitdiffstats
path: root/discover
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 /discover
parent6b2d8ff75f1b9554d01dc6872b4498d660827e58 (diff)
downloadpetitboot-ee86a0bd989511319adf3467b41b5b2e1f486aa6.zip
petitboot-ee86a0bd989511319adf3467b41b5b2e1f486aa6.tar.gz
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 'discover')
-rw-r--r--discover/device-handler.c2
-rw-r--r--discover/grub2-parser.c2
-rw-r--r--discover/kboot-parser.c2
-rw-r--r--discover/parser-utils.c2
-rw-r--r--discover/parser-utils.h2
-rw-r--r--discover/parser.c2
-rw-r--r--discover/yaboot-parser.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index bda724c..0d43496 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -10,7 +10,7 @@
#include <talloc/talloc.h>
#include <list/list.h>
#include <log/log.h>
-#include <pb-protocol/pb-protocol.h>
+#include <types/types.h>
#include <system/system.h>
#include "device-handler.h"
diff --git a/discover/grub2-parser.c b/discover/grub2-parser.c
index f6cbccb..df1b755 100644
--- a/discover/grub2-parser.c
+++ b/discover/grub2-parser.c
@@ -27,7 +27,7 @@
#include "log/log.h"
#include "talloc/talloc.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser-conf.h"
#include "parser-utils.h"
#include "paths.h"
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index 29324cb..2954d89 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -6,7 +6,7 @@
#include "log/log.h"
#include "talloc/talloc.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser-conf.h"
#include "parser-utils.h"
#include "paths.h"
diff --git a/discover/parser-utils.c b/discover/parser-utils.c
index 47e30d8..5792f0a 100644
--- a/discover/parser-utils.c
+++ b/discover/parser-utils.c
@@ -4,7 +4,7 @@
#include <log/log.h>
#include <talloc/talloc.h>
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "event.h"
#include "udev.h"
#include "device-handler.h"
diff --git a/discover/parser-utils.h b/discover/parser-utils.h
index fe28b7b..107f4f3 100644
--- a/discover/parser-utils.h
+++ b/discover/parser-utils.h
@@ -1,7 +1,7 @@
#ifndef PARSER_UTILS_H
#define PARSER_UTILS_H
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser.h"
#define streq(a,b) (!strcasecmp((a),(b)))
diff --git a/discover/parser.c b/discover/parser.c
index beaaccc..d0b0477 100644
--- a/discover/parser.c
+++ b/discover/parser.c
@@ -1,7 +1,7 @@
#include <stdlib.h>
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include <log/log.h>
#include "device-handler.h"
diff --git a/discover/yaboot-parser.c b/discover/yaboot-parser.c
index 4306492..59e52b8 100644
--- a/discover/yaboot-parser.c
+++ b/discover/yaboot-parser.c
@@ -6,7 +6,7 @@
#include "log/log.h"
#include "talloc/talloc.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser-conf.h"
#include "parser-utils.h"
#include "paths.h"
OpenPOWER on IntegriCloud