subbrute_attack_view.h 971 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "../subbrute_custom_event.h"
  3. #include <gui/view.h>
  4. #include <input/input.h>
  5. #include <gui/elements.h>
  6. typedef void (*SubBruteAttackViewCallback)(SubBruteCustomEvent event, void* context);
  7. typedef struct SubBruteAttackView SubBruteAttackView;
  8. void subbrute_attack_view_set_callback(
  9. SubBruteAttackView* instance,
  10. SubBruteAttackViewCallback callback,
  11. void* context);
  12. SubBruteAttackView* subbrute_attack_view_alloc();
  13. void subbrute_attack_view_free(SubBruteAttackView* instance);
  14. View* subbrute_attack_view_get_view(SubBruteAttackView* instance);
  15. void subbrute_attack_view_set_current_step(SubBruteAttackView* instance, uint64_t current_step);
  16. void subbrute_attack_view_set_worker_type(SubBruteAttackView* instance, bool is_continuous_worker);
  17. void subbrute_attack_view_init_values(
  18. SubBruteAttackView* instance,
  19. uint8_t index,
  20. uint64_t max_value,
  21. uint64_t current_step,
  22. bool is_attacking,
  23. uint8_t extra_repeats);