From ee86a0bd989511319adf3467b41b5b2e1f486aa6 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 10 Apr 2013 12:19:13 +1000 Subject: 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 Signed-off-by: Geoff Levand --- ui/common/discover-client.h | 2 +- ui/common/ui-system.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/common') 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 +#include 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 + #include "system/system.h" +#include "types/types.h" #include "ui/common/timer.h" #include -- cgit v1.2.1