SLV2 0.6.6

- Main Page
- Modules
- Files

- File List

world.h
1 /* SLV2
2 * Copyright (C) 2007-2009 Dave Robillard <http://drobilla.net>
3 *
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19 #ifndef __SLV2_WORLD_H__
20 #define __SLV2_WORLD_H__
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #include <librdf.h>
27 #include "slv2/collections.h"
28
53 SLV2World
54 slv2_world_new();
55
56
59 SLV2World
60 slv2_world_new_using_rdf_world(librdf_world* world);
61
62
69 void
70 slv2_world_free(SLV2World world);
71
72
86 void
87 slv2_world_load_all(SLV2World world);
88
89
108 void
109 slv2_world_load_bundle(SLV2World world,
110 SLV2Value bundle_uri);
111
112
117 SLV2PluginClass
118 slv2_world_get_plugin_class(SLV2World world);
119
120
127 SLV2PluginClasses
128 slv2_world_get_plugin_classes(SLV2World world);
129
130
144 SLV2Plugins
145 slv2_world_get_all_plugins(SLV2World world);
146
147
159 SLV2Plugins
160 slv2_world_get_plugins_by_filter(SLV2World world,
161 bool (*include)(SLV2Plugin));
162
163
164 #if 0
165
172 SLV2Plugins
173 slv2_world_get_plugins_by_class(SLV2World world,
174 SLV2PluginClass plugin_class);
175 #endif
176
177 #if 0
178
198 SLV2Plugins
199 slv2_world_get_plugins_by_query(SLV2World world,
200 const char* query);
201 #endif
202
205 #ifdef __cplusplus
206 } /* extern "C" */
207 #endif
208
209 #endif /* __SLV2_WORLD_H__ */
210
slv2_world_load_all
void slv2_world_load_all(SLV2World world)
Load all installed LV2 bundles on the system.
slv2_world_new_using_rdf_world
SLV2World slv2_world_new_using_rdf_world(librdf_world *world)
Initialize a new, empty world, using an existing Redland context.
slv2_world_get_plugins_by_filter
SLV2Plugins slv2_world_get_plugins_by_filter(SLV2World world, bool(*include)(SLV2Plugin))
Return a list of found plugins filtered by a user-defined filter function.
slv2_world_new
SLV2World slv2_world_new()
Initialize a new, empty world.
slv2_world_free
void slv2_world_free(SLV2World world)
Destroy the world, mwahaha.
slv2_world_get_plugin_classes
SLV2PluginClasses slv2_world_get_plugin_classes(SLV2World world)
Return a list of all found plugin classes.
slv2_world_load_bundle
void slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri)
Load a specific bundle.
slv2_world_get_all_plugins
SLV2Plugins slv2_world_get_all_plugins(SLV2World world)
Return a list of all found plugins.
slv2_world_get_plugin_class
SLV2PluginClass slv2_world_get_plugin_class(SLV2World world)
Get the parent of all other plugin classes, lv2:Plugin.