Api Symbols: replace asserts with checks

merge ofw commit
This commit is contained in:
MX
2024-03-25 13:53:32 +03:00
parent 81a16e5a28
commit 585b7f963d
565 changed files with 3544 additions and 2691 deletions

View File

@@ -126,7 +126,7 @@ static void infrared_find_vacant_remote_name(FuriString* name, const char* path)
furi_record_close(RECORD_STORAGE);
}
static InfraredApp* infrared_alloc() {
static InfraredApp* infrared_alloc(void) {
InfraredApp* infrared = malloc(sizeof(InfraredApp));
infrared->task_thread =

View File

@@ -27,7 +27,7 @@ struct InfraredBruteForce {
bool is_started;
};
InfraredBruteForce* infrared_brute_force_alloc() {
InfraredBruteForce* infrared_brute_force_alloc(void) {
InfraredBruteForce* brute_force = malloc(sizeof(InfraredBruteForce));
brute_force->ff = NULL;
brute_force->db_filename = NULL;

View File

@@ -21,7 +21,7 @@ typedef struct InfraredBruteForce InfraredBruteForce;
*
* @returns pointer to the created instance.
*/
InfraredBruteForce* infrared_brute_force_alloc();
InfraredBruteForce* infrared_brute_force_alloc(void);
/**
* @brief Delete an InfraredBruteForce instance.

View File

@@ -544,7 +544,7 @@ static void infrared_cli_start_ir(Cli* cli, FuriString* args, void* context) {
furi_string_free(command);
}
void infrared_on_system_start() {
void infrared_on_system_start(void) {
#ifdef SRV_CLI
Cli* cli = (Cli*)furi_record_open(RECORD_CLI);
cli_add_command(cli, "ir", CliCommandFlagDefault, infrared_cli_start_ir, NULL);

View File

@@ -37,7 +37,7 @@ typedef struct {
typedef bool (
*InfraredBatchCallback)(const InfraredBatch* batch, const InfraredBatchTarget* target);
InfraredRemote* infrared_remote_alloc() {
InfraredRemote* infrared_remote_alloc(void) {
InfraredRemote* remote = malloc(sizeof(InfraredRemote));
StringArray_init(remote->signal_names);
remote->name = furi_string_alloc();

View File

@@ -23,7 +23,7 @@ typedef struct InfraredRemote InfraredRemote;
*
* @returns pointer to the created instance.
*/
InfraredRemote* infrared_remote_alloc();
InfraredRemote* infrared_remote_alloc(void);
/**
* @brief Delete an InfraredRemote instance.

View File

@@ -201,7 +201,7 @@ bool infrared_signal_read_body(InfraredSignal* signal, FlipperFormat* ff) {
return success;
}
InfraredSignal* infrared_signal_alloc() {
InfraredSignal* infrared_signal_alloc(void) {
InfraredSignal* signal = malloc(sizeof(InfraredSignal));
signal->is_raw = false;

View File

@@ -36,7 +36,7 @@ typedef struct {
*
* @returns pointer to the instance created.
*/
InfraredSignal* infrared_signal_alloc();
InfraredSignal* infrared_signal_alloc(void);
/**
* @brief Delete an InfraredSignal instance.

View File

@@ -30,7 +30,7 @@ static void infrared_debug_view_draw_callback(Canvas* canvas, void* model) {
}
}
InfraredDebugView* infrared_debug_view_alloc() {
InfraredDebugView* infrared_debug_view_alloc(void) {
InfraredDebugView* debug_view = malloc(sizeof(InfraredDebugView));
debug_view->view = view_alloc();
view_allocate_model(debug_view->view, ViewModelTypeLocking, sizeof(InfraredDebugViewModel));

View File

@@ -4,7 +4,7 @@
typedef struct InfraredDebugView InfraredDebugView;
InfraredDebugView* infrared_debug_view_alloc();
InfraredDebugView* infrared_debug_view_alloc(void);
void infrared_debug_view_free(InfraredDebugView* debug_view);
View* infrared_debug_view_get_view(InfraredDebugView* debug_view);

View File

@@ -20,7 +20,7 @@ typedef void (*InfraredProgressViewBackCallback)(void*);
*
* @retval new allocated instance
*/
InfraredProgressView* infrared_progress_view_alloc();
InfraredProgressView* infrared_progress_view_alloc(void);
/** Free previously allocated Progress view module instance
*