comparison plugin/LADSPAPluginFactory.cpp @ 150:4b2ea82fd0ed

* Reorganising code base. This revision probably should compile once more.
author Chris Cannam
date Mon, 31 Jul 2006 14:05:22 +0000
parents 82f529a08cf3
children 5ae5885d6ce3
comparison
equal deleted inserted replaced
149:3e4c384f518e 150:4b2ea82fd0ed
28 #include <cmath> 28 #include <cmath>
29 29
30 #include "LADSPAPluginInstance.h" 30 #include "LADSPAPluginInstance.h"
31 #include "PluginIdentifier.h" 31 #include "PluginIdentifier.h"
32 32
33 #include "base/System.h" 33 #include "system/System.h"
34 #include "base/Preferences.h" 34 #include "base/Preferences.h"
35 35
36 #ifdef HAVE_LRDF 36 #ifdef HAVE_LRDF
37 #include "lrdf.h" 37 #include "lrdf.h"
38 #endif // HAVE_LRDF 38 #endif // HAVE_LRDF
539 539
540 return pathList; 540 return pathList;
541 } 541 }
542 542
543 543
544 #ifdef HAVE_LRDF
545 std::vector<QString> 544 std::vector<QString>
546 LADSPAPluginFactory::getLRDFPath(QString &baseUri) 545 LADSPAPluginFactory::getLRDFPath(QString &baseUri)
547 { 546 {
547 std::vector<QString> lrdfPaths;
548
549 #ifdef HAVE_LRDF
548 std::vector<QString> pathList = getPluginPath(); 550 std::vector<QString> pathList = getPluginPath();
549 std::vector<QString> lrdfPaths;
550 551
551 lrdfPaths.push_back("/usr/local/share/ladspa/rdf"); 552 lrdfPaths.push_back("/usr/local/share/ladspa/rdf");
552 lrdfPaths.push_back("/usr/share/ladspa/rdf"); 553 lrdfPaths.push_back("/usr/share/ladspa/rdf");
553 554
554 for (std::vector<QString>::iterator i = pathList.begin(); 555 for (std::vector<QString>::iterator i = pathList.begin();
555 i != pathList.end(); ++i) { 556 i != pathList.end(); ++i) {
556 lrdfPaths.push_back(*i + "/rdf"); 557 lrdfPaths.push_back(*i + "/rdf");
557 } 558 }
558 559
559 baseUri = LADSPA_BASE; 560 baseUri = LADSPA_BASE;
561 #endif
562
560 return lrdfPaths; 563 return lrdfPaths;
561 } 564 }
562 #endif
563 565
564 void 566 void
565 LADSPAPluginFactory::discoverPlugins() 567 LADSPAPluginFactory::discoverPlugins()
566 { 568 {
567 std::vector<QString> pathList = getPluginPath(); 569 std::vector<QString> pathList = getPluginPath();