| 1234567891011121314151617181920212223242526272829 |
- #ifndef FLIP_STORE_STORAGE_H
- #define FLIP_STORE_STORAGE_H
- #include <furi.h>
- #include <storage/storage.h>
- #include <flip_store.h>
- #define SETTINGS_PATH STORAGE_EXT_PATH_PREFIX "/apps_data/flip_store/settings.bin"
- #define BUFFER_SIZE 64
- #define MAX_KEY_LENGTH 32
- #define MAX_VALUE_LENGTH 64
- void save_settings(
- const char *ssid,
- const char *password);
- bool load_settings(
- char *ssid,
- size_t ssid_size,
- char *password,
- size_t password_size);
- // future implenetation because we need the app category
- bool delete_app(const char *app_id, const char *app_category);
- // Function to parse JSON incrementally from a file
- bool parse_json_incrementally(const char *file_path, const char *target_key, char *value_buffer, size_t value_buffer_size);
- #endif
|