You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
866B

  1. #pragma once
  2. #include <common.hpp>
  3. #include <vector>
  4. namespace rack {
  5. /** Synchronizes plugins with the VCV Library and updates Rack itself
  6. */
  7. namespace library {
  8. struct Update {
  9. std::string pluginSlug;
  10. std::string pluginName;
  11. std::string version;
  12. std::string changelogUrl;
  13. float progress = 0.f;
  14. };
  15. void init();
  16. void destroy();
  17. bool isAppUpdateAvailable();
  18. bool isLoggedIn();
  19. void logIn(const std::string& email, const std::string& password);
  20. void logOut();
  21. void queryUpdates();
  22. bool hasUpdates();
  23. void syncUpdate(Update* update);
  24. void syncUpdates();
  25. bool isSyncing();
  26. extern std::string appVersion;
  27. extern std::string appDownloadUrl;
  28. extern std::string appChangelogUrl;
  29. extern std::string loginStatus;
  30. extern std::vector<Update> updates;
  31. extern std::string updateStatus;
  32. extern bool restartRequested;
  33. } // namespace library
  34. } // namespace rack