mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
* feat: pinning settings in favorites * include archive in unit tests fw * change settings icon * update text with suggestions from the ui team * Small touch of constness --------- Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
26 lines
757 B
C
26 lines
757 B
C
#pragma once
|
|
|
|
#include "archive_files.h"
|
|
|
|
typedef enum {
|
|
ArchiveAppTypeU2f,
|
|
ArchiveAppTypeSetting,
|
|
ArchiveAppTypeUnknown,
|
|
ArchiveAppsTotal,
|
|
} ArchiveAppTypeEnum;
|
|
|
|
static const ArchiveFileTypeEnum app_file_types[] = {
|
|
[ArchiveAppTypeU2f] = ArchiveFileTypeU2f,
|
|
[ArchiveAppTypeSetting] = ArchiveFileTypeSetting,
|
|
[ArchiveAppTypeUnknown] = ArchiveFileTypeUnknown,
|
|
};
|
|
|
|
static inline ArchiveFileTypeEnum archive_get_app_filetype(ArchiveAppTypeEnum app) {
|
|
return app_file_types[app];
|
|
}
|
|
|
|
ArchiveAppTypeEnum archive_get_app_type(const char* path);
|
|
bool archive_app_is_available(void* context, const char* path);
|
|
bool archive_app_read_dir(void* context, const char* path);
|
|
void archive_app_delete_file(void* context, const char* path);
|