Flipper Zero Firmware
Loading...
Searching...
No Matches
manifest.h
1#pragma once
2
3#include <storage/storage.h>
4
5#include <stdbool.h>
6#include <stdint.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef enum {
13 ResourceManifestEntryTypeUnknown = 0,
14 ResourceManifestEntryTypeVersion,
15 ResourceManifestEntryTypeTimestamp,
16 ResourceManifestEntryTypeDirectory,
17 ResourceManifestEntryTypeFile,
18} ResourceManifestEntryType;
19
20typedef struct {
21 ResourceManifestEntryType type;
22 FuriString* name;
23 uint32_t size;
24 uint8_t hash[16];
26
28
34ResourceManifestReader* resource_manifest_reader_alloc(Storage* storage);
35
40void resource_manifest_reader_free(ResourceManifestReader* resource_manifest);
41
48bool resource_manifest_reader_open(ResourceManifestReader* resource_manifest, const char* filename);
49
55bool resource_manifest_rewind(ResourceManifestReader* resource_manifest);
56
62ResourceManifestEntry* resource_manifest_reader_next(ResourceManifestReader* resource_manifest);
63
74 resource_manifest_reader_previous(ResourceManifestReader* resource_manifest);
75
76#ifdef __cplusplus
77} // extern "C"
78#endif
APIs for working with storages, directories and files.
Definition string.c:4
Definition manifest.h:20
Definition manifest.c:6
Definition storage_i.h:23