2021-09-10 03:57:43 +03:00
|
|
|
#pragma once
|
2022-04-14 14:28:59 +03:00
|
|
|
|
|
|
|
#include <storage/storage.h>
|
2021-09-10 03:57:43 +03:00
|
|
|
|
2022-07-26 15:21:51 +03:00
|
|
|
#define ARCHIVE_FAV_PATH ANY_PATH("favorites.txt")
|
|
|
|
#define ARCHIVE_FAV_TEMP_PATH ANY_PATH("favorites.tmp")
|
2021-09-10 03:57:43 +03:00
|
|
|
|
2021-09-21 13:56:33 +03:00
|
|
|
uint16_t archive_favorites_count(void* context);
|
2021-09-10 03:57:43 +03:00
|
|
|
bool archive_favorites_read(void* context);
|
2022-10-07 16:35:15 +03:00
|
|
|
bool archive_favorites_delete(const char* format, ...) _ATTRIBUTE((__format__(__printf__, 1, 2)));
|
|
|
|
bool archive_is_favorite(const char* format, ...) _ATTRIBUTE((__format__(__printf__, 1, 2)));
|
2022-02-10 16:01:49 +03:00
|
|
|
bool archive_favorites_rename(const char* src, const char* dst);
|
2021-10-12 16:09:34 +03:00
|
|
|
void archive_add_to_favorites(const char* file_path);
|
|
|
|
void archive_favorites_save(void* context);
|