From 17dc0b7f6b2fd6409eee0282cac488d50ce0bd7a Mon Sep 17 00:00:00 2001 From: Kris Bahnsen Date: Fri, 2 Aug 2024 21:02:04 -0700 Subject: [PATCH] patch_list: move to main codebase, rename, cleanup Makes the patch_list struct opaque Signed-off-by: Kris Bahnsen --- src/{views/trade_patch_list.h => include/patch_list.h} | 5 +---- src/{views/trade_patch_list.c => patch_list.c} | 6 +++++- src/views/trade.c | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) rename src/{views/trade_patch_list.h => include/patch_list.h} (87%) rename src/{views/trade_patch_list.c => patch_list.c} (96%) diff --git a/src/views/trade_patch_list.h b/src/include/patch_list.h similarity index 87% rename from src/views/trade_patch_list.h rename to src/include/patch_list.h index 41ff263fac0..480b7739935 100644 --- a/src/views/trade_patch_list.h +++ b/src/include/patch_list.h @@ -7,10 +7,7 @@ #include #include -struct patch_list { - uint8_t index; - struct patch_list* next; -}; +struct patch_list; struct patch_list* plist_alloc(void); diff --git a/src/views/trade_patch_list.c b/src/patch_list.c similarity index 96% rename from src/views/trade_patch_list.c rename to src/patch_list.c index 377d5a5abfe..bdb4d6dcae1 100644 --- a/src/views/trade_patch_list.c +++ b/src/patch_list.c @@ -1,5 +1,9 @@ #include -#include + +struct patch_list { + uint8_t index; + struct patch_list* next; +}; struct patch_list* plist_alloc(void) { struct patch_list* plist = NULL; diff --git a/src/views/trade.c b/src/views/trade.c index 3e9ca8d240f..2a01a7684de 100644 --- a/src/views/trade.c +++ b/src/views/trade.c @@ -99,7 +99,7 @@ #include #include -#include +#include /* Uncomment the following line to enable graphics testing for the different * phases of the trade view. Pressing the okay button will step through each