mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-26 14:30:25 +00:00
acc39a4bc0
* 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>
18 lines
551 B
C
18 lines
551 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include "desktop_events.h"
|
|
|
|
typedef struct DesktopMainView DesktopMainView;
|
|
|
|
typedef void (*DesktopMainViewCallback)(DesktopEvent event, void* context);
|
|
|
|
void desktop_main_set_callback(
|
|
DesktopMainView* main_view,
|
|
DesktopMainViewCallback callback,
|
|
void* context);
|
|
|
|
View* desktop_main_get_view(DesktopMainView* main_view);
|
|
void desktop_main_set_dummy_mode_state(DesktopMainView* main_view, bool dummy_mode);
|
|
DesktopMainView* desktop_main_alloc(void);
|
|
void desktop_main_free(DesktopMainView* main_view);
|