Skip to content

Commit 17dc0b7

Browse files
committed
patch_list: move to main codebase, rename, cleanup
Makes the patch_list struct opaque Signed-off-by: Kris Bahnsen <Kris@KBEmbedded.com>
1 parent fcaa48f commit 17dc0b7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/views/trade_patch_list.h src/include/patch_list.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
#include <src/include/pokemon_app.h>
88
#include <src/include/pokemon_data.h>
99

10-
struct patch_list {
11-
uint8_t index;
12-
struct patch_list* next;
13-
};
10+
struct patch_list;
1411

1512
struct patch_list* plist_alloc(void);
1613

src/views/trade_patch_list.c src/patch_list.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include <src/include/pokemon_app.h>
2-
#include <src/views/trade_patch_list.h>
2+
3+
struct patch_list {
4+
uint8_t index;
5+
struct patch_list* next;
6+
};
37

48
struct patch_list* plist_alloc(void) {
59
struct patch_list* plist = NULL;

src/views/trade.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999

100100
#include <src/include/pokemon_app.h>
101101
#include <src/include/pokemon_data.h>
102-
#include <src/views/trade_patch_list.h>
102+
#include <src/include/patch_list.h>
103103

104104
/* Uncomment the following line to enable graphics testing for the different
105105
* phases of the trade view. Pressing the okay button will step through each

0 commit comments

Comments
 (0)