Now has a separate struct for caller app name & icon
- New home screen wording - Removed duplicate RUN_APPLICATION macro
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
#include "tokens.h"
|
||||
#include "chainConfig.h"
|
||||
#include "nft.h"
|
||||
#ifdef HAVE_NBGL
|
||||
#include "nbgl_types.h"
|
||||
#endif
|
||||
|
||||
#define MAX_BIP32_PATH 10
|
||||
|
||||
@@ -221,6 +224,16 @@ typedef enum {
|
||||
|
||||
extern pluginType_t pluginType;
|
||||
|
||||
typedef enum { CALLER_TYPE_CLONE, CALLER_TYPE_PLUGIN } e_caller_type;
|
||||
|
||||
typedef struct caller_app_t {
|
||||
const char *name;
|
||||
#ifdef HAVE_NBGL
|
||||
const nbgl_icon_details_t *icon;
|
||||
#endif
|
||||
char type; // does not have to be set by the caller app
|
||||
} caller_app_t;
|
||||
|
||||
extern uint8_t appState;
|
||||
#ifdef HAVE_STARKWARE
|
||||
extern bool quantumSet;
|
||||
@@ -229,7 +242,7 @@ extern bool quantumSet;
|
||||
extern uint32_t eth2WithdrawalIndex;
|
||||
#endif
|
||||
|
||||
extern const char *plugin_name;
|
||||
extern caller_app_t *caller_app;
|
||||
|
||||
void reset_app_context(void);
|
||||
const uint8_t *parseBip32(const uint8_t *dataBuffer, uint8_t *dataLength, bip32_path_t *bip32);
|
||||
|
||||
Reference in New Issue
Block a user