[FL-2284] IR: Show universal remote loading (#1004)

* [FL-2131] IR: Show universal remote loading
* Remove unused hal rtc. Gui: cleanup loading module.

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Albert Kharisov
2022-02-24 15:59:36 +04:00
committed by GitHub
parent 92734f1bb3
commit 24987b95cd
32 changed files with 409 additions and 243 deletions
@@ -0,0 +1,25 @@
#pragma once
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct IrdaProgressView IrdaProgressView;
typedef void (*IrdaProgressViewBackCallback)(void*);
IrdaProgressView* irda_progress_view_alloc();
void irda_progress_view_free(IrdaProgressView* progress);
View* irda_progress_view_get_view(IrdaProgressView* progress);
bool irda_progress_view_increase_progress(IrdaProgressView* progress);
void irda_progress_view_set_progress_total(IrdaProgressView* progress, uint16_t progress_max);
void irda_progress_view_set_back_callback(
IrdaProgressView* instance,
IrdaProgressViewBackCallback callback,
void* context);
#ifdef __cplusplus
}
#endif