mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 11:13:09 +00:00
b9a766d909
* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
25 lines
517 B
C
25 lines
517 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
|
|
typedef struct U2fView U2fView;
|
|
typedef void (*U2fOkCallback)(InputType type, void* context);
|
|
|
|
typedef enum {
|
|
U2fMsgNotConnected,
|
|
U2fMsgIdle,
|
|
U2fMsgRegister,
|
|
U2fMsgAuth,
|
|
U2fMsgSuccess,
|
|
U2fMsgError,
|
|
} U2fViewMsg;
|
|
|
|
U2fView* u2f_view_alloc();
|
|
|
|
void u2f_view_free(U2fView* u2f);
|
|
|
|
View* u2f_view_get_view(U2fView* u2f);
|
|
|
|
void u2f_view_set_ok_callback(U2fView* u2f, U2fOkCallback callback, void* context);
|
|
|
|
void u2f_view_set_state(U2fView* u2f, U2fViewMsg msg);
|