2022-02-10 13:01:49 +00:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-16 07:20:45 +00:00
|
|
|
#include "archive_files.h"
|
|
|
|
|
2022-02-10 13:01:49 +00:00
|
|
|
typedef enum {
|
|
|
|
ArchiveAppTypeU2f,
|
|
|
|
ArchiveAppTypeUnknown,
|
|
|
|
ArchiveAppsTotal,
|
|
|
|
} ArchiveAppTypeEnum;
|
|
|
|
|
|
|
|
static const ArchiveFileTypeEnum app_file_types[] = {
|
|
|
|
[ArchiveAppTypeU2f] = ArchiveFileTypeU2f,
|
|
|
|
[ArchiveAppTypeUnknown] = ArchiveFileTypeUnknown,
|
|
|
|
};
|
|
|
|
|
2022-05-06 13:37:10 +00:00
|
|
|
static inline ArchiveFileTypeEnum archive_get_app_filetype(ArchiveAppTypeEnum app) {
|
2022-02-10 13:01:49 +00:00
|
|
|
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);
|