mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 11:18:35 -07:00
Api Symbols: replace asserts with checks
merge ofw commit
This commit is contained in:
@@ -86,7 +86,7 @@ static bool detect_reader_input_callback(InputEvent* event, void* context) {
|
||||
return consumed;
|
||||
}
|
||||
|
||||
DetectReader* detect_reader_alloc() {
|
||||
DetectReader* detect_reader_alloc(void) {
|
||||
DetectReader* detect_reader = malloc(sizeof(DetectReader));
|
||||
detect_reader->view = view_alloc();
|
||||
view_allocate_model(detect_reader->view, ViewModelTypeLocking, sizeof(DetectReaderViewModel));
|
||||
|
||||
@@ -14,7 +14,7 @@ typedef enum {
|
||||
|
||||
typedef void (*DetectReaderDoneCallback)(void* context);
|
||||
|
||||
DetectReader* detect_reader_alloc();
|
||||
DetectReader* detect_reader_alloc(void);
|
||||
|
||||
void detect_reader_free(DetectReader* detect_reader);
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ static bool dict_attack_input_callback(InputEvent* event, void* context) {
|
||||
return consumed;
|
||||
}
|
||||
|
||||
DictAttack* dict_attack_alloc() {
|
||||
DictAttack* dict_attack_alloc(void) {
|
||||
DictAttack* instance = malloc(sizeof(DictAttack));
|
||||
instance->view = view_alloc();
|
||||
view_allocate_model(instance->view, ViewModelTypeLocking, sizeof(DictAttackViewModel));
|
||||
|
||||
@@ -15,7 +15,7 @@ typedef enum {
|
||||
|
||||
typedef void (*DictAttackCallback)(DictAttackEvent event, void* context);
|
||||
|
||||
DictAttack* dict_attack_alloc();
|
||||
DictAttack* dict_attack_alloc(void);
|
||||
|
||||
void dict_attack_free(DictAttack* instance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user