storage.h 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include <furi.h>
  3. #include <storage/storage.h>
  4. #include <flip_world.h>
  5. #define SETTINGS_PATH STORAGE_EXT_PATH_PREFIX "/apps_data/flip_world/settings.bin"
  6. void save_settings(
  7. const char *wifi_ssid,
  8. const char *wifi_password,
  9. const char *username,
  10. const char *password);
  11. bool load_settings(
  12. char *wifi_ssid,
  13. size_t wifi_ssid_size,
  14. char *wifi_password,
  15. size_t wifi_password_size,
  16. char *username,
  17. size_t username_size,
  18. char *password,
  19. size_t password_size);
  20. bool save_char(
  21. const char *path_name, const char *value);
  22. bool load_char(
  23. const char *path_name,
  24. char *value,
  25. size_t value_size);
  26. FuriString *load_furi_world(
  27. const char *name);
  28. bool world_exists(
  29. const char *name);
  30. bool save_world_names(const FuriString *json);
  31. bool is_logged_in_to_flip_social();
  32. bool is_logged_in();