19 #ifndef __SLV2_PLUGINS_H__ 20 #define __SLV2_PLUGINS_H__ 26 #include "slv2/types.h" 27 #include "slv2/value.h" 40 #define SLV2_COLLECTION(CollType, ElemType, prefix) \ 47 prefix ## _free(CollType collection); \ 55 prefix ## _size(CollType collection); \ 70 prefix ## _get_at(CollType collection, \ 73 SLV2_COLLECTION(SLV2PluginClasses, SLV2PluginClass, slv2_plugin_classes)
74 SLV2_COLLECTION(SLV2ScalePoints, SLV2ScalePoint, slv2_scale_points)
75 SLV2_COLLECTION(SLV2Values, SLV2Value, slv2_values)
76 SLV2_COLLECTION(SLV2UIs, SLV2UI, slv2_uis)
unsigned slv2_plugins_size(SLV2Plugins plugins)
Get the number of plugins in the collection.
SLV2Plugin slv2_plugins_get_at(SLV2Plugins plugins, unsigned index)
Get a plugin from the plugins by index.
SLV2Plugin slv2_plugins_get_by_uri(SLV2Plugins plugins, SLV2Value uri)
Get a plugin from the collection by URI.
SLV2PluginClass slv2_plugin_classes_get_by_uri(SLV2PluginClasses classes, SLV2Value uri)
Get a plugin class from the collection by URI.
void slv2_plugins_free(SLV2World world, SLV2Plugins plugins)
Free a plugin collection.
SLV2ScalePoints slv2_scale_points_new()
Allocate a new, empty SLV2ScalePoints.
SLV2UI slv2_uis_get_by_uri(SLV2UIs list, SLV2Value uri)
Get a plugin from the list by URI.
bool slv2_values_contains(SLV2Values values, SLV2Value value)
Return whether values contains value.
SLV2Values slv2_values_new()
Allocate a new, empty SLV2Values.