unleashed-firmware/applications/external/multi_fuzzer/fuzzer_i.h

55 lines
1.2 KiB
C
Raw Normal View History

2023-06-02 13:42:58 +00:00
#pragma once
2023-06-03 15:47:53 +00:00
#include <furi.h>
#include <furi_hal.h>
2023-06-02 13:42:58 +00:00
#include <gui/gui.h>
#include <gui/view_dispatcher.h>
#include <gui/scene_manager.h>
2023-06-06 10:03:36 +00:00
#include <gui/modules/popup.h>
2023-06-03 15:47:53 +00:00
#include <dialogs/dialogs.h>
2023-06-06 10:03:36 +00:00
#include <notification/notification_messages.h>
2023-06-02 13:42:58 +00:00
#include "scenes/fuzzer_scene.h"
#include "views/main_menu.h"
2023-06-02 17:33:28 +00:00
#include "views/attack.h"
2023-06-03 19:03:20 +00:00
#include "views/field_editor.h"
2023-06-02 13:42:58 +00:00
#include "helpers/fuzzer_types.h"
2023-06-03 11:24:27 +00:00
#include "lib/worker/fake_worker.h"
2023-06-02 13:42:58 +00:00
#include <flipper_format/flipper_format_i.h>
2023-06-03 15:47:53 +00:00
#include "fuzzer_icons.h"
#define FUZZ_TIME_DELAY_MAX (80)
typedef struct {
const char* custom_dict_extension;
const char* custom_dict_folder;
const char* key_extension;
const char* path_key_folder;
2023-06-05 11:10:51 +00:00
const Icon* key_icon;
2023-06-03 15:47:53 +00:00
} FuzzerConsts;
2023-06-02 13:42:58 +00:00
typedef struct {
Gui* gui;
2023-06-06 10:03:36 +00:00
NotificationApp* notifications;
2023-06-02 13:42:58 +00:00
ViewDispatcher* view_dispatcher;
SceneManager* scene_manager;
2023-06-02 17:33:28 +00:00
2023-06-06 10:03:36 +00:00
Popup* popup;
2023-06-03 15:47:53 +00:00
DialogsApp* dialogs;
2023-06-02 13:42:58 +00:00
FuzzerViewMain* main_view;
2023-06-02 17:33:28 +00:00
FuzzerViewAttack* attack_view;
2023-06-03 19:03:20 +00:00
FuzzerViewFieldEditor* field_editor_view;
2023-06-02 13:42:58 +00:00
2023-06-03 15:47:53 +00:00
FuriString* file_path;
2023-06-02 17:33:28 +00:00
FuzzerState fuzzer_state;
2023-06-03 15:47:53 +00:00
FuzzerConsts* fuzzer_const;
2023-06-02 21:32:32 +00:00
FuzzerWorker* worker;
FuzzerPayload* payload;
2023-06-02 13:42:58 +00:00
} PacsFuzzerApp;