diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.am | 13 | ||||
-rw-r--r-- | utils/README | 3 | ||||
-rw-r--r-- | utils/ladspa2lv2.cpp (renamed from utils/ladspa2lv2.cc) | 5 | ||||
-rw-r--r-- | utils/lv2_list.c | 43 |
4 files changed, 60 insertions, 4 deletions
diff --git a/utils/Makefile.am b/utils/Makefile.am index 8d23d38..36a06ec 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -1,9 +1,16 @@ -if BUILD_UTILITIES +AM_CFLAGS = -I$(top_srcdir) @RASQAL_CFLAGS@ -bin_PROGRAMS = ladspa2lv2 +bin_PROGRAMS = lv2_list + +lv2_list_SOURCES = lv2_list.c +lv2_list_LDADD = ../src/libslv2.la + +if BUILD_LADSPA2SLV2 + +bin_PROGRAMS += ladspa2lv2 ladspa2lv2_CXXFLAGS = @RAUL_CFLAGS@ @RAPTOR_CFLAGS@ ladspa2lv2_LDADD = -ldl @RAUL_LIBS@ @RAPTOR_LIBS@ -ladspa2lv2_SOURCES = ladspa2lv2.cc +ladspa2lv2_SOURCES = ladspa2lv2.cpp endif diff --git a/utils/README b/utils/README new file mode 100644 index 0000000..c7ded0e --- /dev/null +++ b/utils/README @@ -0,0 +1,3 @@ +This is still in development, and depends on Raptor 1.4.14. + +Soon.... diff --git a/utils/ladspa2lv2.cc b/utils/ladspa2lv2.cpp index f3a4d14..23cd561 100644 --- a/utils/ladspa2lv2.cc +++ b/utils/ladspa2lv2.cpp @@ -166,7 +166,10 @@ write_lv2_turtle(LADSPA_Descriptor* descriptor, const char* uri, const char* fil void print_usage() { - printf("Usage: ladspa2slv2 /path/to/laddspalib.so index lv2_uri\n\n"); + printf("Usage: ladspa2slv2 /path/to/laddspalib.so ladspa_index lv2_uri\n"); + printf("Partially convert a LADSPA plugin to an LV2 plugin."); + printf("(This is a utility for developers, it will not generate a usable\n"); + printf("LV2 plugin directly).\n\n"); } diff --git a/utils/lv2_list.c b/utils/lv2_list.c new file mode 100644 index 0000000..e1cba6d --- /dev/null +++ b/utils/lv2_list.c @@ -0,0 +1,43 @@ +/* lv2_list - List system installed LV2 plugins. + * Copyright (C) 2007 Dave Robillard <drobilla.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include <stdio.h> +#include <slv2/slv2.h> + + +void +list_plugins(SLV2List list) +{ + for (size_t i=0; i < slv2_list_get_length(list); ++i) { + const SLV2Plugin* const p = slv2_list_get_plugin_by_index(list, i); + printf("%s\n", slv2_plugin_get_uri(p)); + } +} + + +int +main()//int argc, char** argv) +{ + SLV2List plugins = slv2_list_new(); + slv2_list_load_all(plugins); + + list_plugins(plugins); + + return 0; +} + |