diff --git a/applications/plugins/subbrute/subbrute.c b/applications/plugins/subbrute/subbrute.c index 9ae354110..c06d66291 100644 --- a/applications/plugins/subbrute/subbrute.c +++ b/applications/plugins/subbrute/subbrute.c @@ -35,19 +35,19 @@ static const char* subbrute_menu_names[] = { [SubBruteAttackTotalCount] = "Total Count", }; -bool subbrute_custom_event_callback(void* context, uint32_t event) { +static bool subbrute_custom_event_callback(void* context, uint32_t event) { furi_assert(context); SubBruteState* instance = context; return scene_manager_handle_custom_event(instance->scene_manager, event); } -bool subbrute_back_event_callback(void* context) { +static bool subbrute_back_event_callback(void* context) { furi_assert(context); SubBruteState* instance = context; return scene_manager_handle_back_event(instance->scene_manager); } -void subbrute_tick_event_callback(void* context) { +static void subbrute_tick_event_callback(void* context) { furi_assert(context); SubBruteState* instance = context; scene_manager_handle_tick_event(instance->scene_manager); @@ -217,6 +217,8 @@ const char* subbrute_get_menu_name(SubBruteAttacks index) { int32_t subbrute_app(void* p) { UNUSED(p); + FURI_LOG_I(TAG, "subbrute_app"); + SubBruteState* instance = subbrute_alloc(); #ifdef FURI_DEBUG FURI_LOG_I(TAG, "Starting subbrute_alloc done"); diff --git a/applications/plugins/subbrute/subbrute_i.h b/applications/plugins/subbrute/subbrute_i.h index 5d434738e..518631f3a 100644 --- a/applications/plugins/subbrute/subbrute_i.h +++ b/applications/plugins/subbrute/subbrute_i.h @@ -77,11 +77,4 @@ struct SubBruteState { void subbrute_show_loading_popup(void* context, bool show); void subbrute_text_input_callback(void* context); void subbrute_popup_closed_callback(void* context); -const char* subbrute_get_menu_name(uint8_t index); - -int32_t subbrute_app(void* p); -SubBruteState* subbrute_alloc(); -void subbrute_free(SubBruteState* instance); -bool subbrute_custom_event_callback(void* context, uint32_t event); -bool subbrute_back_event_callback(void* context); -void subbrute_tick_event_callback(void* context); \ No newline at end of file +const char* subbrute_get_menu_name(uint8_t index); \ No newline at end of file diff --git a/applications/plugins/subbrute/views/subbrute_attack_view.c b/applications/plugins/subbrute/views/subbrute_attack_view.c index f651bb4c6..cb8b0d9c7 100644 --- a/applications/plugins/subbrute/views/subbrute_attack_view.c +++ b/applications/plugins/subbrute/views/subbrute_attack_view.c @@ -127,7 +127,7 @@ SubBruteAttackView* subbrute_attack_view_alloc() { view_set_enter_callback(instance->view, subbrute_attack_view_enter); view_set_exit_callback(instance->view, subbrute_attack_view_exit); - instance->worker = subbrute_worker_alloc(); + //instance->worker = subbrute_worker_alloc(); return instance; }