summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/collections.c6
-rw-r--r--src/plugin.c33
-rw-r--r--src/pluginclass.c6
-rw-r--r--src/plugininstance.c3
-rw-r--r--src/plugins.c5
-rw-r--r--src/pluginui.c7
-rw-r--r--src/pluginuiinstance.c6
-rw-r--r--src/port.c18
-rw-r--r--src/query.c2
-rw-r--r--src/scalepoint.c4
-rw-r--r--src/util.c3
-rw-r--r--src/value.c23
-rw-r--r--src/world.c16
13 files changed, 0 insertions, 132 deletions
diff --git a/src/collections.c b/src/collections.c
index 576a6c1..eaee106 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -67,7 +67,6 @@ SLV2_COLLECTION_IMPL(SLV2Values, SLV2Value,
SLV2_COLLECTION_IMPL(SLV2UIs, SLV2UI,
slv2_uis, &slv2_ui_free)
-
/* **** PLUGIN CLASSES **** */
SLV2PluginClass
@@ -98,8 +97,6 @@ slv2_plugin_classes_get_by_uri(SLV2PluginClasses list, SLV2Value uri)
return NULL;
}
-
-
/* **** VALUES **** */
bool
@@ -112,7 +109,6 @@ slv2_values_contains(SLV2Values list, SLV2Value value)
return false;
}
-
void
slv2_values_set_at(SLV2Values list, unsigned index, void* value)
{
@@ -120,8 +116,6 @@ slv2_values_set_at(SLV2Values list, unsigned index, void* value)
raptor_sequence_set_at(list, index, value);
}
-
-
/* **** PLUGIN UIS **** */
SLV2UI
diff --git a/src/plugin.c b/src/plugin.c
index 7e38b48..3ea7b9d 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -32,7 +32,6 @@
#include "slv2/util.h"
#include "slv2_internal.h"
-
/* private
* ownership of uri is taken */
SLV2Plugin
@@ -56,7 +55,6 @@ slv2_plugin_new(SLV2World world, SLV2Value uri, SLV2Value bundle_uri)
return plugin;
}
-
/* private */
void
slv2_plugin_free(SLV2Plugin p)
@@ -88,7 +86,6 @@ slv2_plugin_free(SLV2Plugin p)
free(p);
}
-
/* private */
void
slv2_plugin_load_if_necessary(SLV2Plugin p)
@@ -97,7 +94,6 @@ slv2_plugin_load_if_necessary(SLV2Plugin p)
slv2_plugin_load(p);
}
-
static SLV2Values
slv2_plugin_query_node(SLV2Plugin p, SLV2Node subject, SLV2Node predicate)
{
@@ -123,7 +119,6 @@ slv2_plugin_query_node(SLV2Plugin p, SLV2Node subject, SLV2Node predicate)
return result;
}
-
SLV2Value
slv2_plugin_get_unique(SLV2Plugin p, SLV2Node subject, SLV2Node predicate)
{
@@ -138,7 +133,6 @@ slv2_plugin_get_unique(SLV2Plugin p, SLV2Node subject, SLV2Node predicate)
return ret;
}
-
static SLV2Value
slv2_plugin_get_one(SLV2Plugin p, SLV2Node subject, SLV2Node predicate)
{
@@ -239,7 +233,6 @@ slv2_plugin_load_ports_if_necessary(SLV2Plugin p)
}
}
-
void
slv2_plugin_load(SLV2Plugin p)
{
@@ -290,7 +283,6 @@ slv2_plugin_load(SLV2Plugin p)
p->loaded = true;
}
-
SLV2Value
slv2_plugin_get_uri(SLV2Plugin p)
{
@@ -299,7 +291,6 @@ slv2_plugin_get_uri(SLV2Plugin p)
return p->plugin_uri;
}
-
SLV2Value
slv2_plugin_get_bundle_uri(SLV2Plugin p)
{
@@ -308,7 +299,6 @@ slv2_plugin_get_bundle_uri(SLV2Plugin p)
return p->bundle_uri;
}
-
SLV2Value
slv2_plugin_get_library_uri(SLV2Plugin p)
{
@@ -332,14 +322,12 @@ slv2_plugin_get_library_uri(SLV2Plugin p)
return p->binary_uri;
}
-
SLV2Values
slv2_plugin_get_data_uris(SLV2Plugin p)
{
return p->data_uris;
}
-
SLV2PluginClass
slv2_plugin_get_class(SLV2Plugin p)
{
@@ -382,7 +370,6 @@ slv2_plugin_get_class(SLV2Plugin p)
return p->plugin_class;
}
-
bool
slv2_plugin_verify(SLV2Plugin plugin)
{
@@ -413,7 +400,6 @@ slv2_plugin_verify(SLV2Plugin plugin)
return true;
}
-
SLV2Value
slv2_plugin_get_name(SLV2Plugin plugin)
{
@@ -440,7 +426,6 @@ slv2_plugin_get_name(SLV2Plugin plugin)
return ret;
}
-
SLV2Values
slv2_plugin_get_value(SLV2Plugin p,
SLV2Value predicate)
@@ -448,7 +433,6 @@ slv2_plugin_get_value(SLV2Plugin p,
return slv2_plugin_get_value_for_subject(p, p->plugin_uri, predicate);
}
-
SLV2Values
slv2_plugin_get_value_by_qname(SLV2Plugin p,
const char* predicate)
@@ -465,7 +449,6 @@ slv2_plugin_get_value_by_qname(SLV2Plugin p,
return ret;
}
-
SLV2Values
slv2_plugin_get_value_by_qname_i18n(SLV2Plugin p,
const char* predicate)
@@ -489,7 +472,6 @@ slv2_plugin_get_value_by_qname_i18n(SLV2Plugin p,
return slv2_values_from_stream_i18n(p, results);
}
-
SLV2Values
slv2_plugin_get_value_for_subject(SLV2Plugin p,
SLV2Value subject,
@@ -519,7 +501,6 @@ slv2_plugin_get_value_for_subject(SLV2Plugin p,
predicate->val.uri_val);
}
-
uint32_t
slv2_plugin_get_num_ports(SLV2Plugin p)
{
@@ -527,7 +508,6 @@ slv2_plugin_get_num_ports(SLV2Plugin p)
return p->num_ports;
}
-
void
slv2_plugin_get_port_ranges_float(SLV2Plugin p,
float* min_values,
@@ -555,7 +535,6 @@ slv2_plugin_get_port_ranges_float(SLV2Plugin p,
}
}
-
uint32_t
slv2_plugin_get_num_ports_of_class(SLV2Plugin p,
SLV2Value class_1, ...)
@@ -590,7 +569,6 @@ slv2_plugin_get_num_ports_of_class(SLV2Plugin p,
return ret;
}
-
bool
slv2_plugin_has_latency(SLV2Plugin p)
{
@@ -620,7 +598,6 @@ slv2_plugin_has_latency(SLV2Plugin p)
return ret;
}
-
uint32_t
slv2_plugin_get_latency_port_index(SLV2Plugin p)
{
@@ -654,7 +631,6 @@ slv2_plugin_get_latency_port_index(SLV2Plugin p)
return ret; // FIXME: error handling
}
-
bool
slv2_plugin_has_feature(SLV2Plugin p,
SLV2Value feature)
@@ -667,7 +643,6 @@ slv2_plugin_has_feature(SLV2Plugin p,
return ret;
}
-
SLV2Values
slv2_plugin_get_supported_features(SLV2Plugin p)
{
@@ -689,21 +664,18 @@ slv2_plugin_get_supported_features(SLV2Plugin p)
return result;
}
-
SLV2Values
slv2_plugin_get_optional_features(SLV2Plugin p)
{
return slv2_plugin_get_value_by_qname(p, "lv2:optionalFeature");
}
-
SLV2Values
slv2_plugin_get_required_features(SLV2Plugin p)
{
return slv2_plugin_get_value_by_qname(p, "lv2:requiredFeature");
}
-
SLV2Port
slv2_plugin_get_port_by_index(SLV2Plugin p,
uint32_t index)
@@ -715,7 +687,6 @@ slv2_plugin_get_port_by_index(SLV2Plugin p,
return NULL;
}
-
SLV2Port
slv2_plugin_get_port_by_symbol(SLV2Plugin p,
SLV2Value symbol)
@@ -757,7 +728,6 @@ slv2_plugin_get_author(SLV2Plugin p)
return author;
}
-
SLV2Value
slv2_plugin_get_author_name(SLV2Plugin plugin)
{
@@ -770,7 +740,6 @@ slv2_plugin_get_author_name(SLV2Plugin plugin)
return NULL;
}
-
SLV2Value
slv2_plugin_get_author_email(SLV2Plugin plugin)
{
@@ -783,7 +752,6 @@ slv2_plugin_get_author_email(SLV2Plugin plugin)
return NULL;
}
-
SLV2Value
slv2_plugin_get_author_homepage(SLV2Plugin plugin)
{
@@ -796,7 +764,6 @@ slv2_plugin_get_author_homepage(SLV2Plugin plugin)
return NULL;
}
-
SLV2UIs
slv2_plugin_get_uis(SLV2Plugin p)
{
diff --git a/src/pluginclass.c b/src/pluginclass.c
index 8a6da7b..7c2c032 100644
--- a/src/pluginclass.c
+++ b/src/pluginclass.c
@@ -26,7 +26,6 @@
#include "slv2/value.h"
#include "slv2_internal.h"
-
/* private */
SLV2PluginClass
slv2_plugin_class_new(SLV2World world,
@@ -47,7 +46,6 @@ slv2_plugin_class_new(SLV2World world,
return pc;
}
-
void
slv2_plugin_class_free(SLV2PluginClass plugin_class)
{
@@ -58,7 +56,6 @@ slv2_plugin_class_free(SLV2PluginClass plugin_class)
free(plugin_class);
}
-
SLV2Value
slv2_plugin_class_get_parent_uri(SLV2PluginClass plugin_class)
{
@@ -68,7 +65,6 @@ slv2_plugin_class_get_parent_uri(SLV2PluginClass plugin_class)
return NULL;
}
-
SLV2Value
slv2_plugin_class_get_uri(SLV2PluginClass plugin_class)
{
@@ -76,14 +72,12 @@ slv2_plugin_class_get_uri(SLV2PluginClass plugin_class)
return plugin_class->uri;
}
-
SLV2Value
slv2_plugin_class_get_label(SLV2PluginClass plugin_class)
{
return plugin_class->label;
}
-
SLV2PluginClasses
slv2_plugin_class_get_children(SLV2PluginClass plugin_class)
{
diff --git a/src/plugininstance.c b/src/plugininstance.c
index b262fbd..8287568 100644
--- a/src/plugininstance.c
+++ b/src/plugininstance.c
@@ -30,7 +30,6 @@
#include "slv2/value.h"
#include "slv2_internal.h"
-
SLV2Instance
slv2_plugin_instantiate(SLV2Plugin plugin,
double sample_rate,
@@ -146,7 +145,6 @@ slv2_plugin_instantiate(SLV2Plugin plugin,
return result;
}
-
void
slv2_instance_free(SLV2Instance instance)
{
@@ -163,4 +161,3 @@ slv2_instance_free(SLV2Instance instance)
free(i);
}
-
diff --git a/src/plugins.c b/src/plugins.c
index 0c96af0..5a91ab4 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -28,14 +28,12 @@
#include "slv2/util.h"
#include "slv2_internal.h"
-
SLV2Plugins
slv2_plugins_new()
{
return raptor_new_sequence(NULL, NULL);
}
-
void
slv2_plugins_free(SLV2World world, SLV2Plugins list)
{
@@ -43,14 +41,12 @@ slv2_plugins_free(SLV2World world, SLV2Plugins list)
raptor_free_sequence(list);
}
-
unsigned
slv2_plugins_size(SLV2Plugins list)
{
return (list ? raptor_sequence_size(list) : 0);
}
-
SLV2Plugin
slv2_plugins_get_by_uri(SLV2Plugins list, SLV2Value uri)
{
@@ -79,7 +75,6 @@ slv2_plugins_get_by_uri(SLV2Plugins list, SLV2Value uri)
return NULL;
}
-
SLV2Plugin
slv2_plugins_get_at(SLV2Plugins list, unsigned index)
{
diff --git a/src/pluginui.c b/src/pluginui.c
index 9942117..3167b92 100644
--- a/src/pluginui.c
+++ b/src/pluginui.c
@@ -26,7 +26,6 @@
#include "slv2/pluginui.h"
#include "slv2_internal.h"
-
/* private */
SLV2UI
slv2_ui_new(SLV2World world,
@@ -56,7 +55,6 @@ slv2_ui_new(SLV2World world,
return ui;
}
-
/* private */
void
slv2_ui_free(SLV2UI ui)
@@ -75,7 +73,6 @@ slv2_ui_free(SLV2UI ui)
free(ui);
}
-
SLV2Value
slv2_ui_get_uri(SLV2UI ui)
{
@@ -84,21 +81,18 @@ slv2_ui_get_uri(SLV2UI ui)
return ui->uri;
}
-
SLV2Values
slv2_ui_get_classes(SLV2UI ui)
{
return ui->classes;
}
-
bool
slv2_ui_is_a(SLV2UI ui, SLV2Value ui_class_uri)
{
return slv2_values_contains(ui->classes, ui_class_uri);
}
-
SLV2Value
slv2_ui_get_bundle_uri(SLV2UI ui)
{
@@ -107,7 +101,6 @@ slv2_ui_get_bundle_uri(SLV2UI ui)
return ui->bundle_uri;
}
-
SLV2Value
slv2_ui_get_binary_uri(SLV2UI ui)
{
diff --git a/src/pluginuiinstance.c b/src/pluginuiinstance.c
index a4020d5..4103b4e 100644
--- a/src/pluginuiinstance.c
+++ b/src/pluginuiinstance.c
@@ -31,7 +31,6 @@
#include "slv2/util.h"
#include "slv2_internal.h"
-
SLV2UIInstance
slv2_ui_instantiate(SLV2Plugin plugin,
SLV2UI ui,
@@ -102,7 +101,6 @@ slv2_ui_instantiate(SLV2Plugin plugin,
}
}
-
// Failed to instantiate
if (result == NULL || result->pimpl->lv2ui_handle == NULL) {
free(result);
@@ -122,7 +120,6 @@ slv2_ui_instantiate(SLV2Plugin plugin,
return result;
}
-
void
slv2_ui_instance_free(SLV2UIInstance instance)
{
@@ -139,19 +136,16 @@ slv2_ui_instance_free(SLV2UIInstance instance)
free(i);
}
-
LV2UI_Widget
slv2_ui_instance_get_widget(SLV2UIInstance instance) {
return instance->pimpl->widget;
}
-
const LV2UI_Descriptor*
slv2_ui_instance_get_descriptor(SLV2UIInstance instance) {
return instance->pimpl->lv2ui_descriptor;
}
-
LV2UI_Handle
slv2_ui_instance_get_handle(SLV2UIInstance instance) {
return instance->pimpl->lv2ui_handle;
diff --git a/src/port.c b/src/port.c
index bf3876f..0726259 100644
--- a/src/port.c
+++ b/src/port.c
@@ -28,7 +28,6 @@
#include "slv2/util.h"
#include "slv2_internal.h"
-
/* private */
SLV2Port
slv2_port_new(SLV2World world, uint32_t index, const char* symbol)
@@ -40,7 +39,6 @@ slv2_port_new(SLV2World world, uint32_t index, const char* symbol)
return port;
}
-
/* private */
void
slv2_port_free(SLV2Port port)
@@ -50,7 +48,6 @@ slv2_port_free(SLV2Port port)
free(port);
}
-
bool
slv2_port_is_a(SLV2Plugin plugin,
SLV2Port port,
@@ -63,7 +60,6 @@ slv2_port_is_a(SLV2Plugin plugin,
return false;
}
-
static SLV2Node
slv2_port_get_node(SLV2Plugin p,
SLV2Port port)
@@ -95,7 +91,6 @@ slv2_port_get_node(SLV2Plugin p,
return ret;
}
-
bool
slv2_port_has_property(SLV2Plugin p,
SLV2Port port,
@@ -114,7 +109,6 @@ slv2_port_has_property(SLV2Plugin p,
return ret;
}
-
bool
slv2_port_supports_event(SLV2Plugin p,
SLV2Port port,
@@ -135,7 +129,6 @@ slv2_port_supports_event(SLV2Plugin p,
return ret;
}
-
static SLV2Values
slv2_values_from_stream_objects(SLV2Plugin p, SLV2Matches stream)
{
@@ -156,7 +149,6 @@ slv2_values_from_stream_objects(SLV2Plugin p, SLV2Matches stream)
return values;
}
-
SLV2Values
slv2_port_get_value_by_qname(SLV2Plugin p,
SLV2Port port,
@@ -179,7 +171,6 @@ slv2_port_get_value_by_qname(SLV2Plugin p,
return slv2_values_from_stream_objects(p, results);
}
-
static SLV2Values
slv2_port_get_value_by_node(SLV2Plugin p,
SLV2Port port,
@@ -197,7 +188,6 @@ slv2_port_get_value_by_node(SLV2Plugin p,
return slv2_values_from_stream_objects(p, results);
}
-
SLV2Values
slv2_port_get_value(SLV2Plugin p,
SLV2Port port,
@@ -213,7 +203,6 @@ slv2_port_get_value(SLV2Plugin p,
slv2_value_as_node(predicate));
}
-
SLV2Values
slv2_port_get_value_by_qname_i18n(SLV2Plugin p,
SLV2Port port,
@@ -236,7 +225,6 @@ slv2_port_get_value_by_qname_i18n(SLV2Plugin p,
return slv2_values_from_stream_i18n(p, results);
}
-
SLV2Value
slv2_port_get_symbol(SLV2Plugin p,
SLV2Port port)
@@ -244,7 +232,6 @@ slv2_port_get_symbol(SLV2Plugin p,
return port->symbol;
}
-
SLV2Value
slv2_port_get_name(SLV2Plugin p,
SLV2Port port)
@@ -265,7 +252,6 @@ slv2_port_get_name(SLV2Plugin p,
return ret;
}
-
SLV2Values
slv2_port_get_classes(SLV2Plugin p,
SLV2Port port)
@@ -273,7 +259,6 @@ slv2_port_get_classes(SLV2Plugin p,
return port->classes;
}
-
void
slv2_port_get_range(SLV2Plugin p,
SLV2Port port,
@@ -307,7 +292,6 @@ slv2_port_get_range(SLV2Plugin p,
}
}
-
SLV2ScalePoints
slv2_port_get_scale_points(SLV2Plugin p,
SLV2Port port)
@@ -346,8 +330,6 @@ slv2_port_get_scale_points(SLV2Plugin p,
return ret;
}
-
-
SLV2Values
slv2_port_get_properties(SLV2Plugin p,
SLV2Port port)
diff --git a/src/query.c b/src/query.c
index 6730bd7..9f331da 100644
--- a/src/query.c
+++ b/src/query.c
@@ -27,7 +27,6 @@
#include "slv2/util.h"
#include "slv2_internal.h"
-
SLV2Matches
slv2_plugin_find_statements(SLV2Plugin plugin,
SLV2Node subject,
@@ -39,7 +38,6 @@ slv2_plugin_find_statements(SLV2Plugin plugin,
return sord_find(plugin->world->model, pat);
}
-
SLV2Values
slv2_values_from_stream_i18n(SLV2Plugin p,
SLV2Matches stream)
diff --git a/src/scalepoint.c b/src/scalepoint.c
index 06a133b..a960d36 100644
--- a/src/scalepoint.c
+++ b/src/scalepoint.c
@@ -27,7 +27,6 @@
#include "slv2/value.h"
#include "slv2_internal.h"
-
/* private - ownership of value and label is taken */
SLV2ScalePoint
slv2_scale_point_new(SLV2Value value, SLV2Value label)
@@ -38,7 +37,6 @@ slv2_scale_point_new(SLV2Value value, SLV2Value label)
return point;
}
-
/* private */
void
slv2_scale_point_free(SLV2ScalePoint point)
@@ -48,14 +46,12 @@ slv2_scale_point_free(SLV2ScalePoint point)
free(point);
}
-
SLV2Value
slv2_scale_point_get_value(SLV2ScalePoint p)
{
return p->value;
}
-
SLV2Value
slv2_scale_point_get_label(SLV2ScalePoint p)
{
diff --git a/src/util.c b/src/util.c
index c1b3430..ab104b3 100644
--- a/src/util.c
+++ b/src/util.c
@@ -53,7 +53,6 @@ slv2_strjoin(const char* first, ...)
return result;
}
-
const char*
slv2_uri_to_path(const char* uri)
{
@@ -63,7 +62,6 @@ slv2_uri_to_path(const char* uri)
return NULL;
}
-
const char*
slv2_get_lang()
{
@@ -88,7 +86,6 @@ slv2_get_lang()
return lang;
}
-
char*
slv2_qname_expand(SLV2Plugin p, const char* qname)
{
diff --git a/src/value.c b/src/value.c
index 1797e2b..07fd630 100644
--- a/src/value.c
+++ b/src/value.c
@@ -27,7 +27,6 @@
#include "slv2/value.h"
#include "slv2_internal.h"
-
/* private */
static void
slv2_value_set_numerics_from_string(SLV2Value val)
@@ -60,7 +59,6 @@ slv2_value_set_numerics_from_string(SLV2Value val)
}
}
-
/* private
* Note that if type is numeric, slv2_value_set_numerics_from_string MUST be
* called or the returned value will be corrupt! It is not automatically
@@ -91,7 +89,6 @@ slv2_value_new(SLV2World world, SLV2ValueType type, const char* str)
return val;
}
-
/** Create a new SLV2Value from @a node, or return NULL if impossible */
SLV2Value
slv2_value_new_from_node(SLV2World world, SordNode node)
@@ -138,21 +135,18 @@ slv2_value_new_from_node(SLV2World world, SordNode node)
return result;
}
-
SLV2Value
slv2_value_new_uri(SLV2World world, const char* uri)
{
return slv2_value_new(world, SLV2_VALUE_URI, uri);
}
-
SLV2Value
slv2_value_new_string(SLV2World world, const char* str)
{
return slv2_value_new(world, SLV2_VALUE_STRING, str);
}
-
SLV2Value
slv2_value_new_int(SLV2World world, int val)
{
@@ -163,7 +157,6 @@ slv2_value_new_int(SLV2World world, int val)
return ret;
}
-
SLV2Value
slv2_value_new_float(SLV2World world, float val)
{
@@ -174,7 +167,6 @@ slv2_value_new_float(SLV2World world, float val)
return ret;
}
-
SLV2Value
slv2_value_duplicate(SLV2Value val)
{
@@ -195,7 +187,6 @@ slv2_value_duplicate(SLV2Value val)
return result;
}
-
void
slv2_value_free(SLV2Value val)
{
@@ -209,7 +200,6 @@ slv2_value_free(SLV2Value val)
}
}
-
bool
slv2_value_equals(SLV2Value value, SLV2Value other)
{
@@ -236,7 +226,6 @@ slv2_value_equals(SLV2Value value, SLV2Value other)
return false; /* shouldn't get here */
}
-
char*
slv2_value_get_turtle_token(SLV2Value value)
{
@@ -285,14 +274,12 @@ slv2_value_get_turtle_token(SLV2Value value)
return result;
}
-
bool
slv2_value_is_uri(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_URI);
}
-
const char*
slv2_value_as_uri(SLV2Value value)
{
@@ -300,7 +287,6 @@ slv2_value_as_uri(SLV2Value value)
return value->str_val;
}
-
SLV2Node
slv2_value_as_node(SLV2Value value)
{
@@ -308,14 +294,12 @@ slv2_value_as_node(SLV2Value value)
return value->val.uri_val;
}
-
bool
slv2_value_is_blank(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_BLANK);
}
-
const char*
slv2_value_as_blank(SLV2Value value)
{
@@ -323,7 +307,6 @@ slv2_value_as_blank(SLV2Value value)
return value->str_val;
}
-
bool
slv2_value_is_literal(SLV2Value value)
{
@@ -331,28 +314,24 @@ slv2_value_is_literal(SLV2Value value)
return (value && value->type != SLV2_VALUE_URI);
}
-
bool
slv2_value_is_string(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_STRING);
}
-
const char*
slv2_value_as_string(SLV2Value value)
{
return value->str_val;
}
-
bool
slv2_value_is_int(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_INT);
}
-
int
slv2_value_as_int(SLV2Value value)
{
@@ -361,14 +340,12 @@ slv2_value_as_int(SLV2Value value)
return value->val.int_val;
}
-
bool
slv2_value_is_float(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_FLOAT);
}
-
float
slv2_value_as_float(SLV2Value value)
{
diff --git a/src/world.c b/src/world.c
index 6c2054c..10cf279 100644
--- a/src/world.c
+++ b/src/world.c
@@ -106,7 +106,6 @@ fail:
return NULL;
}
-
SLV2World
slv2_world_new()
{
@@ -114,7 +113,6 @@ slv2_world_new()
return slv2_world_new_internal(world);
}
-
void
slv2_world_free(SLV2World world)
{
@@ -160,7 +158,6 @@ slv2_world_free(SLV2World world)
free(world);
}
-
static SLV2Matches
slv2_world_find_statements(SLV2World world,
Sord model,
@@ -203,7 +200,6 @@ slv2_world_blank_node_prefix(SLV2World world)
return (const uint8_t*)str;
}
-
/** Comparator for sorting SLV2Plugins */
int
slv2_plugin_compare_by_uri(const void* a, const void* b)
@@ -215,7 +211,6 @@ slv2_plugin_compare_by_uri(const void* a, const void* b)
slv2_value_as_uri(plugin_b->plugin_uri));
}
-
/** Comparator for sorting SLV2PluginClasses */
int
slv2_plugin_class_compare_by_uri(const void* a, const void* b)
@@ -227,7 +222,6 @@ slv2_plugin_class_compare_by_uri(const void* a, const void* b)
slv2_value_as_uri(class_b->uri));
}
-
void
slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri)
{
@@ -415,7 +409,6 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri)
slv2_match_end(spec_results);
}
-
/** Load all bundles under a directory.
* Private.
*/
@@ -449,7 +442,6 @@ slv2_world_load_directory(SLV2World world, const char* dir)
closedir(pdir);
}
-
void
slv2_world_load_path(SLV2World world,
const char* lv2_path)
@@ -472,7 +464,6 @@ slv2_world_load_path(SLV2World world,
free(path);
}
-
void
slv2_world_load_specifications(SLV2World world)
{
@@ -502,7 +493,6 @@ slv2_world_load_specifications(SLV2World world)
slv2_match_end(specs);
}
-
void
slv2_world_load_plugin_classes(SLV2World world)
{
@@ -585,7 +575,6 @@ slv2_world_load_plugin_classes(SLV2World world)
slv2_match_end(classes);
}
-
void
slv2_world_load_all(SLV2World world)
{
@@ -630,7 +619,6 @@ slv2_world_load_all(SLV2World world)
free(lv2_path);
}
-
/* 2. Query out things to cache */
slv2_world_load_specifications(world);
@@ -660,28 +648,24 @@ slv2_world_load_all(SLV2World world)
*/
}
-
SLV2PluginClass
slv2_world_get_plugin_class(SLV2World world)
{
return world->lv2_plugin_class;
}
-
SLV2PluginClasses
slv2_world_get_plugin_classes(SLV2World world)
{
return world->plugin_classes;
}
-
SLV2Plugins
slv2_world_get_all_plugins(SLV2World world)
{
return world->plugins;
}
-
SLV2Plugins
slv2_world_get_plugins_by_filter(SLV2World world, bool (*include)(SLV2Plugin))
{