summaryrefslogtreecommitdiffstats
path: root/utils/lv2_list.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 21:56:29 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 21:56:29 +0000
commit809f5ae5999901be62f9d0cc1eb8a2d0f4806780 (patch)
tree4a2c1a7b344ec0f0a75d6a64ed1177a61822af89 /utils/lv2_list.c
parent372ad8bcac948087bbc261933e38868f533c6708 (diff)
downloadlilv-809f5ae5999901be62f9d0cc1eb8a2d0f4806780.tar.gz
lilv-809f5ae5999901be62f9d0cc1eb8a2d0f4806780.tar.bz2
lilv-809f5ae5999901be62f9d0cc1eb8a2d0f4806780.zip
Rename slv2 to lilv.
API breakage was proving too much of a hassle, and would be even further of a mess after release and packaging. Best to make a clean break now, and fix installation to support parallel installs and prevent this kind of problem in the future. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3217 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils/lv2_list.c')
-rw-r--r--utils/lv2_list.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/utils/lv2_list.c b/utils/lv2_list.c
index d62699a..88769ae 100644
--- a/utils/lv2_list.c
+++ b/utils/lv2_list.c
@@ -18,21 +18,21 @@
#include <stdio.h>
#include <string.h>
-#include "slv2/slv2.h"
+#include "lilv/lilv.h"
-#include "slv2-config.h"
+#include "lilv-config.h"
void
-list_plugins(SLV2Plugins list, bool show_names)
+list_plugins(LilvPlugins list, bool show_names)
{
- SLV2_FOREACH(plugins, i, list) {
- SLV2Plugin p = slv2_plugins_get(list, i);
+ LILV_FOREACH(plugins, i, list) {
+ LilvPlugin p = lilv_plugins_get(list, i);
if (show_names) {
- SLV2Value n = slv2_plugin_get_name(p);
- printf("%s\n", slv2_value_as_string(n));
- slv2_value_free(n);
+ LilvValue n = lilv_plugin_get_name(p);
+ printf("%s\n", lilv_value_as_string(n));
+ lilv_value_free(n);
} else {
- printf("%s\n", slv2_value_as_uri(slv2_plugin_get_uri(p)));
+ printf("%s\n", lilv_value_as_uri(lilv_plugin_get_uri(p)));
}
}
}
@@ -41,7 +41,7 @@ void
print_version()
{
printf(
- "lv2_list (slv2) " SLV2_VERSION "\n"
+ "lv2_list (lilv) " LILV_VERSION "\n"
"Copyright 2007-2011 David Robillard <http://drobilla.net>\n"
"License: <http://www.opensource.org/licenses/isc-license>\n"
"This is free software: you are free to change and redistribute it.\n"
@@ -81,14 +81,14 @@ main(int argc, char** argv)
}
}
- SLV2World world = slv2_world_new();
- slv2_world_load_all(world);
+ LilvWorld world = lilv_world_new();
+ lilv_world_load_all(world);
- SLV2Plugins plugins = slv2_world_get_all_plugins(world);
+ LilvPlugins plugins = lilv_world_get_all_plugins(world);
list_plugins(plugins, show_names);
- slv2_world_free(world);
+ lilv_world_free(world);
return 0;
}