2021-11-26 13:53:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include "../bad_usb_script.h"
|
|
|
|
|
|
|
|
typedef struct BadUsb BadUsb;
|
|
|
|
typedef void (*BadUsbOkCallback)(InputType type, void* context);
|
|
|
|
|
|
|
|
BadUsb* bad_usb_alloc();
|
|
|
|
|
|
|
|
void bad_usb_free(BadUsb* bad_usb);
|
|
|
|
|
|
|
|
View* bad_usb_get_view(BadUsb* bad_usb);
|
|
|
|
|
|
|
|
void bad_usb_set_ok_callback(BadUsb* bad_usb, BadUsbOkCallback callback, void* context);
|
|
|
|
|
2022-05-27 11:19:21 +00:00
|
|
|
void bad_usb_set_file_name(BadUsb* bad_usb, const char* name);
|
2021-11-26 13:53:51 +00:00
|
|
|
|
|
|
|
void bad_usb_set_state(BadUsb* bad_usb, BadUsbState* st);
|