Minimize includes in header files to what they depend on

This commit is contained in:
Alexandre Paillier
2022-03-08 17:59:36 +01:00
parent c548aba364
commit 23202f6a63
21 changed files with 43 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
#include <string.h>
#include "eth_plugin_internal.h"
bool erc20_plugin_available_check(void);

View File

@@ -1,6 +1,8 @@
#ifndef _ETH_PLUGIN_INTERNAL_H_
#define _ETH_PLUGIN_INTERNAL_H_
#include <stdint.h>
#include <stdbool.h>
#include "eth_plugin_interface.h"
#define SELECTOR_SIZE 4

View File

@@ -1,6 +1,6 @@
#include "handle_swap_sign_transaction.h"
#include "usbd_core.h"
#include "os_io_seproxyhal.h"
#include "ux.h"
#include "handle_swap_sign_transaction.h"
#include "shared_context.h"
#include "utils.h"
@@ -79,4 +79,4 @@ void handle_swap_sign_transaction(chain_config_t* config) {
BLE_power(1, "Nano X");
#endif // HAVE_BLE
app_main();
}
}

View File

@@ -1,8 +1,6 @@
#ifndef _NFT_H_
#define _NFT_H_
#include "tokens.h"
#define COLLECTION_NAME_MAX_LEN 70
typedef struct nftInfo_t {

View File

@@ -3,13 +3,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "os.h"
#include "cx.h"
#include "os_io_seproxyhal.h"
#include "ethUstream.h"
#include "uint256.h"
#include "tokens.h"
#include "chainConfig.h"
#include "nft.h"