#include "ardour/types.h"
#include "ardour/plugin.h"
-#ifdef HAVE_SLV2
+#ifdef LV2_SUPPORT
#include "ardour/lv2_plugin.h"
#endif
int add_ladspa_directory (std::string dirpath);
int add_vst_directory (std::string dirpath);
+#ifdef LV2_SUPPORT
+ LV2World* lv2_world() { return _lv2_world; }
+#endif
+
static PluginManager* the_manager() { return _manager; }
enum PluginStatusType {
PluginStatusType get_status (const PluginInfoPtr&);
/** plugins were added to or removed from one of the PluginInfoLists */
- boost::signals2::signal<void()> PluginListChanged;
+ PBD::Signal0<void> PluginListChanged;
private:
struct PluginStatus {
}
bool operator<(const PluginStatus& other) const {
- return other.type < type || other.unique_id < unique_id;
+ if (other.type < type) {
+ return true;
+ } else if (other.type == type && other.unique_id < unique_id) {
+ return true;
+ }
+ return false;
}
};
typedef std::set<PluginStatus> PluginStatusList;
ARDOUR::PluginInfoList* _lv2_plugin_info;
ARDOUR::PluginInfoList* _au_plugin_info;
-#ifdef HAVE_SLV2
+#ifdef LV2_SUPPORT
LV2World* _lv2_world;
#endif