mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 14:51:52 +03:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
24 lines
610 B
C
24 lines
610 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include "../helpers/ducky_script.h"
|
|
|
|
typedef struct BadUsb BadUsb;
|
|
typedef void (*BadUsbButtonCallback)(InputKey key, void* context);
|
|
|
|
BadUsb* bad_usb_alloc(void);
|
|
|
|
void bad_usb_free(BadUsb* bad_usb);
|
|
|
|
View* bad_usb_get_view(BadUsb* bad_usb);
|
|
|
|
void bad_usb_set_button_callback(BadUsb* bad_usb, BadUsbButtonCallback callback, void* context);
|
|
|
|
void bad_usb_set_file_name(BadUsb* bad_usb, const char* name);
|
|
|
|
void bad_usb_set_layout(BadUsb* bad_usb, const char* layout);
|
|
|
|
void bad_usb_set_state(BadUsb* bad_usb, BadUsbState* st);
|
|
|
|
bool bad_usb_is_idle_state(BadUsb* bad_usb);
|