4d6b170769
* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
22 lines
648 B
C
22 lines
648 B
C
#pragma once
|
|
|
|
typedef enum {
|
|
ArchiveAppTypeU2f,
|
|
ArchiveAppTypeUnknown,
|
|
ArchiveAppsTotal,
|
|
} ArchiveAppTypeEnum;
|
|
|
|
static const ArchiveFileTypeEnum app_file_types[] = {
|
|
[ArchiveAppTypeU2f] = ArchiveFileTypeU2f,
|
|
[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);
|