2023-09-28 14:56:39 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <furi.h>
|
|
|
|
|
2024-02-04 13:13:58 -06:00
|
|
|
typedef struct GenieFile GenieFile;
|
|
|
|
|
|
|
|
GenieFile* genie_file_load(const char* path);
|
|
|
|
void genie_file_free(GenieFile* file);
|
|
|
|
uint32_t genie_file_get_key_hi(GenieFile* file);
|
|
|
|
uint32_t genie_file_get_key_lo(GenieFile* file);
|
|
|
|
uint16_t genie_file_get_last_sent(GenieFile* file);
|
|
|
|
uint16_t genie_file_get_rec_count(GenieFile* file);
|
|
|
|
void genie_file_set_last_sent(const char* genie_path, uint16_t last_sent);
|
|
|
|
|
2023-09-28 14:56:39 -05:00
|
|
|
bool genie_save(uint32_t count, FuriString* key);
|
2023-10-20 16:43:38 -05:00
|
|
|
uint32_t genie_save_bin(const char* key);
|
2023-10-02 11:46:57 -05:00
|
|
|
uint32_t genie_load();
|
2023-10-11 16:27:41 -05:00
|
|
|
void genie_file_init();
|