mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-24 01:28:11 -07:00
Api Symbols: replace asserts with checks (#3507)
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
@@ -11,29 +11,29 @@ class AccessorApp {
|
||||
public:
|
||||
void run(void);
|
||||
|
||||
AccessorApp();
|
||||
~AccessorApp();
|
||||
AccessorApp(void);
|
||||
~AccessorApp(void);
|
||||
|
||||
enum class Scene : uint8_t {
|
||||
Exit,
|
||||
Start,
|
||||
};
|
||||
|
||||
AccessorAppViewManager* get_view_manager();
|
||||
AccessorAppViewManager* get_view_manager(void);
|
||||
void switch_to_next_scene(Scene index);
|
||||
void search_and_switch_to_previous_scene(std::initializer_list<Scene> scenes_list);
|
||||
bool switch_to_previous_scene(uint8_t count = 1);
|
||||
Scene get_previous_scene();
|
||||
Scene get_previous_scene(void);
|
||||
|
||||
void notify_green_blink();
|
||||
void notify_success();
|
||||
void notify_green_blink(void);
|
||||
void notify_success(void);
|
||||
|
||||
char* get_text_store();
|
||||
uint8_t get_text_store_size();
|
||||
char* get_text_store(void);
|
||||
uint8_t get_text_store_size(void);
|
||||
void set_text_store(const char* text...);
|
||||
|
||||
WIEGAND* get_wiegand();
|
||||
OneWireHost* get_one_wire();
|
||||
WIEGAND* get_wiegand(void);
|
||||
OneWireHost* get_one_wire(void);
|
||||
|
||||
private:
|
||||
std::list<Scene> previous_scenes_list = {Scene::Exit};
|
||||
|
||||
@@ -15,16 +15,16 @@ public:
|
||||
|
||||
FuriMessageQueue* event_queue;
|
||||
|
||||
AccessorAppViewManager();
|
||||
~AccessorAppViewManager();
|
||||
AccessorAppViewManager(void);
|
||||
~AccessorAppViewManager(void);
|
||||
|
||||
void switch_to(ViewType type);
|
||||
|
||||
void receive_event(AccessorEvent* event);
|
||||
void send_event(AccessorEvent* event);
|
||||
|
||||
Submenu* get_submenu();
|
||||
Popup* get_popup();
|
||||
Submenu* get_submenu(void);
|
||||
Popup* get_popup(void);
|
||||
|
||||
private:
|
||||
ViewDispatcher* view_dispatcher;
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
|
||||
class WIEGAND {
|
||||
public:
|
||||
WIEGAND();
|
||||
void begin();
|
||||
void end();
|
||||
bool available();
|
||||
unsigned long getCode();
|
||||
unsigned long getCodeHigh();
|
||||
int getWiegandType();
|
||||
WIEGAND(void);
|
||||
void begin(void);
|
||||
void end(void);
|
||||
bool available(void);
|
||||
unsigned long getCode(void);
|
||||
unsigned long getCodeHigh(void);
|
||||
int getWiegandType(void);
|
||||
|
||||
static void ReadD0();
|
||||
static void ReadD1();
|
||||
static void ReadD0(void);
|
||||
static void ReadD1(void);
|
||||
|
||||
private:
|
||||
static bool DoWiegandConversion();
|
||||
static bool DoWiegandConversion(void);
|
||||
static unsigned long
|
||||
GetCardId(unsigned long* codehigh, unsigned long* codelow, char bitlength);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user