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.

34 lines
750B

  1. #pragma once
  2. #include "common.hpp"
  3. #include "plugin/Plugin.hpp"
  4. #include "plugin/Model.hpp"
  5. #include <list>
  6. namespace rack {
  7. namespace plugin {
  8. void init(bool devMode);
  9. void destroy();
  10. void logIn(std::string email, std::string password);
  11. void logOut();
  12. /** Returns whether a new plugin is available, and downloads it unless doing a dry run */
  13. bool sync(bool dryRun);
  14. void cancelDownload();
  15. bool isLoggedIn();
  16. Plugin *getPlugin(std::string pluginSlug);
  17. Model *getModel(std::string pluginSlug, std::string modelSlug);
  18. extern std::list<Plugin*> plugins;
  19. extern std::string token;
  20. extern bool isDownloading;
  21. extern float downloadProgress;
  22. extern std::string downloadName;
  23. extern std::string loginStatus;
  24. } // namespace plugin
  25. } // namespace rack