Multithread QR scanning
This commit is contained in:
@@ -29,10 +29,20 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
void init_qr(void);
|
||||
void exit_qr(void);
|
||||
typedef struct {
|
||||
u16 *camera_buffer;
|
||||
u32 *texture_buffer;
|
||||
Handle mutex;
|
||||
volatile bool finished;
|
||||
Handle cancel;
|
||||
|
||||
bool capturing;
|
||||
struct quirc* context;
|
||||
} qr_data;
|
||||
|
||||
void init_qr(EntryMode current_mode);
|
||||
void exit_qr(qr_data *data);
|
||||
void take_picture(void);
|
||||
bool scan_qr(EntryMode current_mode);
|
||||
Result http_get(char *url, const char *path);
|
||||
|
||||
#endif
|
||||
@@ -88,6 +88,7 @@ void draw_preview(int preview_offset);
|
||||
|
||||
void draw_install(InstallType type);
|
||||
|
||||
void draw_base_interface(void);
|
||||
void draw_interface(Entry_List_s* list, Instructions_s instructions);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user