flipperzero-firmware/applications/irda/view/irda_progress_view.h
Albert Kharisov 24987b95cd
[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>
2022-02-24 14:59:36 +03:00

26 lines
682 B
C

#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