diff options
author | Robin Gareus <robin@gareus.org> | 2015-07-16 16:32:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-07-16 16:54:57 +0200 |
commit | 93b90396d28fb34f17bf719b6ad41b719d653b61 (patch) | |
tree | 4f75ed2898edcdb68014df39a3c2ebe384ae1d6f /libs/ardour/ardour/audio_unit.h | |
parent | a95b6cfd924e90452bcb22c9ac1a3aa111708f47 (diff) |
rework AU scanning/discovery
Scan-only: “Iterate over all plugins. skip the ones where there's no
io-cache entry
Discover: cache new plugins info, update cache if needed.
Diffstat (limited to 'libs/ardour/ardour/audio_unit.h')
-rw-r--r-- | libs/ardour/ardour/audio_unit.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/ardour/audio_unit.h b/libs/ardour/ardour/audio_unit.h index 13b16827cb..8fcdcf75a4 100644 --- a/libs/ardour/ardour/audio_unit.h +++ b/libs/ardour/ardour/audio_unit.h @@ -241,7 +241,7 @@ class LIBARDOUR_API AUPluginInfo : public PluginInfo { bool reconfigurable_io() const { return true; } - static PluginInfoList* discover (); + static PluginInfoList* discover (bool scan_only); static bool au_get_crashlog (std::string &msg); static void get_names (CAComponentDescription&, std::string& name, std::string& maker); static std::string stringify_descriptor (const CAComponentDescription&); @@ -252,6 +252,7 @@ class LIBARDOUR_API AUPluginInfo : public PluginInfo { boost::shared_ptr<CAComponentDescription> descriptor; UInt32 version; static FILE * _crashlog_fd; + static bool _scan_only; static void au_start_crashlog (void); static void au_remove_crashlog (void); @@ -267,7 +268,7 @@ class LIBARDOUR_API AUPluginInfo : public PluginInfo { typedef std::map<std::string,AUPluginCachedInfo> CachedInfoMap; static CachedInfoMap cached_info; - static bool cached_io_configuration (const std::string&, UInt32, CAComponent&, AUPluginCachedInfo&, const std::string& name); + static int cached_io_configuration (const std::string&, UInt32, CAComponent&, AUPluginCachedInfo&, const std::string& name); static void add_cached_info (const std::string&, AUPluginCachedInfo&); static void save_cached_info (); }; |