diff plugin/LADSPAPluginFactory.cpp @ 35:0164c8d3023b

* Rejig project file a bit to do pkg-config detection &c and change some HAVE_* symbol names accordingly * Add selection move/resize/delete * First stubs for add layer / pane commands
author Chris Cannam
date Wed, 01 Mar 2006 18:13:01 +0000
parents 2fb933f88604
children 39ae3dee27b9
line wrap: on
line diff
--- a/plugin/LADSPAPluginFactory.cpp	Mon Feb 27 17:34:41 2006 +0000
+++ b/plugin/LADSPAPluginFactory.cpp	Wed Mar 01 18:13:01 2006 +0000
@@ -27,9 +27,9 @@
 
 #include "base/System.h"
 
-#ifdef HAVE_LIBLRDF
+#ifdef HAVE_LRDF
 #include "lrdf.h"
-#endif // HAVE_LIBLRDF
+#endif // HAVE_LRDF
 
 
 LADSPAPluginFactory::LADSPAPluginFactory()
@@ -453,7 +453,7 @@
 }
 
 
-#ifdef HAVE_LIBLRDF
+#ifdef HAVE_LRDF
 std::vector<QString>
 LADSPAPluginFactory::getLRDFPath(QString &baseUri)
 {
@@ -486,7 +486,7 @@
     }
     std::cerr << std::endl;
 
-#ifdef HAVE_LIBLRDF
+#ifdef HAVE_LRDF
     // Initialise liblrdf and read the description files 
     //
     lrdf_init();
@@ -509,7 +509,7 @@
     if (haveSomething) {
 	generateTaxonomy(baseUri + "Plugin", "");
     }
-#endif // HAVE_LIBLRDF
+#endif // HAVE_LRDF
 
     generateFallbackCategories();
 
@@ -523,11 +523,11 @@
 	}
     }
 
-#ifdef HAVE_LIBLRDF
+#ifdef HAVE_LRDF
     // Cleanup after the RDF library
     //
     lrdf_cleanup();
-#endif // HAVE_LIBLRDF
+#endif // HAVE_LRDF
 }
 
 void
@@ -554,7 +554,7 @@
     int index = 0;
     while ((descriptor = fn(index))) {
 
-#ifdef HAVE_LIBLRDF
+#ifdef HAVE_LRDF
 	char *def_uri = 0;
 	lrdf_defaults *defs = 0;
 		
@@ -600,7 +600,7 @@
 		++controlPortNumber;
 	    }
 	}
-#endif // HAVE_LIBLRDF
+#endif // HAVE_LRDF
 
 	QString identifier = PluginIdentifier::createIdentifier
 	    ("ladspa", soname, descriptor->Label);
@@ -664,7 +664,7 @@
 void
 LADSPAPluginFactory::generateTaxonomy(QString uri, QString base)
 {
-#ifdef HAVE_LIBLRDF
+#ifdef HAVE_LRDF
     lrdf_uris *uris = lrdf_get_instances(uri.toStdString().c_str());
 
     if (uris != NULL) {