diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-04-10 12:19:13 +1000 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-04-10 10:49:01 -0700 |
commit | ee86a0bd989511319adf3467b41b5b2e1f486aa6 (patch) | |
tree | 43ecd9479052388dc6bd3dae697fc2a9f6962d42 /ui/common | |
parent | 6b2d8ff75f1b9554d01dc6872b4498d660827e58 (diff) | |
download | petitboot-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 'ui/common')
-rw-r--r-- | ui/common/discover-client.h | 2 | ||||
-rw-r--r-- | ui/common/ui-system.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ui/common/discover-client.h b/ui/common/discover-client.h index f9f74e5..4af936c 100644 --- a/ui/common/discover-client.h +++ b/ui/common/discover-client.h @@ -1,7 +1,7 @@ #ifndef _DISCOVER_CLIENT_H #define _DISCOVER_CLIENT_H -#include <pb-protocol/pb-protocol.h> +#include <types/types.h> struct discover_client; diff --git a/ui/common/ui-system.h b/ui/common/ui-system.h index 63d1a92..b75c4d1 100644 --- a/ui/common/ui-system.h +++ b/ui/common/ui-system.h @@ -19,8 +19,10 @@ #if !defined(_PB_UI_SYSTEM_H) #define _PB_UI_SYSTEM_H -#include "pb-protocol/pb-protocol.h" +#include <stdint.h> + #include "system/system.h" +#include "types/types.h" #include "ui/common/timer.h" #include <signal.h> |