2022-03-07 14:21:32 +01:00
|
|
|
#ifndef _UI_CALLBACKS_H_
|
|
|
|
|
#define _UI_CALLBACKS_H_
|
|
|
|
|
|
2020-06-27 13:24:04 +02:00
|
|
|
#include "shared_context.h"
|
2020-08-27 11:52:56 +02:00
|
|
|
#include "ux.h"
|
2020-06-27 13:24:04 +02:00
|
|
|
|
2023-02-21 11:01:18 +01:00
|
|
|
#ifdef HAVE_NBGL
|
|
|
|
|
typedef int bagl_element_t;
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-06-27 13:24:04 +02:00
|
|
|
unsigned int io_seproxyhal_touch_settings(const bagl_element_t *e);
|
|
|
|
|
unsigned int io_seproxyhal_touch_exit(const bagl_element_t *e);
|
|
|
|
|
unsigned int io_seproxyhal_touch_tx_ok(const bagl_element_t *e);
|
|
|
|
|
unsigned int io_seproxyhal_touch_tx_cancel(const bagl_element_t *e);
|
|
|
|
|
unsigned int io_seproxyhal_touch_address_ok(const bagl_element_t *e);
|
|
|
|
|
unsigned int io_seproxyhal_touch_address_cancel(const bagl_element_t *e);
|
2022-08-30 10:16:39 +02:00
|
|
|
unsigned int io_seproxyhal_touch_signMessage_ok(void);
|
|
|
|
|
unsigned int io_seproxyhal_touch_signMessage_cancel(void);
|
2020-06-27 13:24:04 +02:00
|
|
|
unsigned int io_seproxyhal_touch_data_ok(const bagl_element_t *e);
|
|
|
|
|
unsigned int io_seproxyhal_touch_data_cancel(const bagl_element_t *e);
|
2020-10-27 11:16:50 +01:00
|
|
|
unsigned int io_seproxyhal_touch_eth2_address_ok(const bagl_element_t *e);
|
2022-01-11 08:56:57 +01:00
|
|
|
unsigned int io_seproxyhal_touch_privacy_ok(const bagl_element_t *e);
|
|
|
|
|
unsigned int io_seproxyhal_touch_privacy_cancel(const bagl_element_t *e);
|
2020-06-27 13:24:04 +02:00
|
|
|
|
2021-09-28 12:32:06 +02:00
|
|
|
void ui_warning_contract_data(void);
|
2020-06-27 13:24:04 +02:00
|
|
|
|
|
|
|
|
void io_seproxyhal_send_status(uint32_t sw);
|
|
|
|
|
void finalizeParsing(bool direct);
|
2021-11-22 14:39:36 +01:00
|
|
|
extraInfo_t *getKnownToken(uint8_t *contractAddress);
|
2022-03-07 14:21:32 +01:00
|
|
|
|
|
|
|
|
#endif // _UI_CALLBACKS_H_
|