mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 08:43:10 +00:00
49af516ec7
* nfc: remove mifare read debug view and scene * nfc: change mifare ultralight data structure * mifare_ultralight: add more commands * nfc: add emulate mifare ul scene * nfc: rework data structures, remove debug scenes and views * nfc: add read emv scenes * nfc: mifare emulation wip * nfc cli: increase detecting time * nfc: save nfc files with new format * nfc: store Mifare Ultralight * nfc: start loading mifare ultralight * nfc: add delete scenes * nfc: add edit UID and name * nfc: finish parsing uid and mifare ul data * nfc: delete success fix * gui_widget: introduce GuiWidget * gui_widget: add string element * gui_widget: add button element * gui_widget: move free elements into gui_widget * nfc: rework info scene with GuiWidget * nfc: rework device info scene * nfc: rework delete scene gui * nfc: add compatible script support * nfc: rework emv reading scenes * nfc: rework bank card save * nfc: add bank card custom view * gui_widget: add icon element * nfc: add icon to bank card * nfc: start worker after switching view Co-authored-by: あく <alleteam@gmail.com>
23 lines
574 B
C
23 lines
574 B
C
#pragma once
|
|
#include <stdint.h>
|
|
#include <gui/view.h>
|
|
|
|
typedef struct BankCard BankCard;
|
|
|
|
typedef void (*BankCardBackCallback)(void);
|
|
|
|
BankCard* bank_card_alloc();
|
|
|
|
void bank_card_free(BankCard* bank_card);
|
|
|
|
void bank_card_clear(BankCard* bank_card);
|
|
|
|
View* bank_card_get_view(BankCard* bank_card);
|
|
|
|
void bank_card_set_name(BankCard* bank_card, char* name);
|
|
|
|
void bank_card_set_number(BankCard* bank_card, uint8_t* number);
|
|
|
|
void bank_card_set_exp_date(BankCard* bank_card, uint8_t mon, uint16_t year);
|
|
|
|
void bank_card_set_cardholder_name(BankCard* bank_card, char* name);
|