2023-06-03 19:03:20 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include "../helpers/fuzzer_custom_event.h"
|
2023-06-05 11:10:51 +00:00
|
|
|
#include "../lib/worker/protocol.h"
|
2023-06-03 19:03:20 +00:00
|
|
|
|
|
|
|
typedef struct FuzzerViewFieldEditor FuzzerViewFieldEditor;
|
|
|
|
|
|
|
|
typedef void (*FuzzerViewFieldEditorCallback)(FuzzerCustomEvent event, void* context);
|
|
|
|
|
|
|
|
void fuzzer_view_field_editor_set_callback(
|
|
|
|
FuzzerViewFieldEditor* view_attack,
|
|
|
|
FuzzerViewFieldEditorCallback callback,
|
|
|
|
void* context);
|
|
|
|
|
|
|
|
FuzzerViewFieldEditor* fuzzer_view_field_editor_alloc();
|
|
|
|
|
|
|
|
void fuzzer_view_field_editor_free(FuzzerViewFieldEditor* view_attack);
|
|
|
|
|
2023-06-04 17:21:51 +00:00
|
|
|
View* fuzzer_view_field_editor_get_view(FuzzerViewFieldEditor* view_attack);
|
|
|
|
|
|
|
|
void fuzzer_view_field_editor_reset_data(
|
|
|
|
FuzzerViewFieldEditor* view_edit,
|
2023-06-07 09:44:33 +00:00
|
|
|
const FuzzerPayload* new_uid,
|
|
|
|
bool allow_edit);
|
2023-06-04 17:21:51 +00:00
|
|
|
|
2023-06-07 08:51:15 +00:00
|
|
|
void fuzzer_view_field_editor_get_uid(FuzzerViewFieldEditor* view_edit, FuzzerPayload* output_uid);
|
2023-06-04 17:21:51 +00:00
|
|
|
|
|
|
|
uint8_t fuzzer_view_field_editor_get_index(FuzzerViewFieldEditor* view_edit);
|