Skip to content

Commit

Permalink
patch_list: move to main codebase, rename, cleanup
Browse files Browse the repository at this point in the history
Makes the patch_list struct opaque

Signed-off-by: Kris Bahnsen <Kris@KBEmbedded.com>
  • Loading branch information
kbembedded committed Aug 6, 2024
1 parent fcaa48f commit 17dc0b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/views/trade_patch_list.h → src/include/patch_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
#include <src/include/pokemon_app.h>
#include <src/include/pokemon_data.h>

struct patch_list {
uint8_t index;
struct patch_list* next;
};
struct patch_list;

struct patch_list* plist_alloc(void);

Expand Down
6 changes: 5 additions & 1 deletion src/views/trade_patch_list.c → src/patch_list.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include <src/include/pokemon_app.h>
#include <src/views/trade_patch_list.h>

struct patch_list {
uint8_t index;
struct patch_list* next;
};

struct patch_list* plist_alloc(void) {
struct patch_list* plist = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/views/trade.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

#include <src/include/pokemon_app.h>
#include <src/include/pokemon_data.h>
#include <src/views/trade_patch_list.h>
#include <src/include/patch_list.h>

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

0 comments on commit 17dc0b7

Please sign in to comment.