diff options
author | David Robillard <d@drobilla.net> | 2011-04-29 02:03:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-29 02:03:23 +0000 |
commit | b4cd6dd752c8da20e61abd3774bf9302724a773f (patch) | |
tree | 0f3ba5dc84d8bdbf094da63d1f20ef928a803b0f /utils/lilv_bench.c | |
parent | 7aa935080bae3299dbfab41955ed93d6b68f39bf (diff) | |
download | lilv-b4cd6dd752c8da20e61abd3774bf9302724a773f.tar.gz lilv-b4cd6dd752c8da20e61abd3774bf9302724a773f.tar.bz2 lilv-b4cd6dd752c8da20e61abd3774bf9302724a773f.zip |
Don't hide pointers behind typedefs.
Use const appropriately in API (makes it clear from the type whether objects should be freed or not).
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3222 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils/lilv_bench.c')
-rw-r--r-- | utils/lilv_bench.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/lilv_bench.c b/utils/lilv_bench.c index 2920fb5..b9e72db 100644 --- a/utils/lilv_bench.c +++ b/utils/lilv_bench.c @@ -40,12 +40,12 @@ print_usage() int main(int argc, char** argv) { - LilvWorld world = lilv_world_new(); + LilvWorld* world = lilv_world_new(); lilv_world_load_all(world); - LilvPlugins plugins = lilv_world_get_all_plugins(world); + const LilvPlugins* plugins = lilv_world_get_all_plugins(world); LILV_FOREACH(plugins, p, plugins) { - LilvPlugin plugin = lilv_plugins_get(plugins, p); + const LilvPlugin* plugin = lilv_plugins_get(plugins, p); lilv_plugin_get_class(plugin); } |