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.

library.hpp 938B

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