summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
Diffstat (limited to 'slv2')
-rw-r--r--slv2/plugin.h6
-rw-r--r--slv2/plugininstance.h28
2 files changed, 3 insertions, 31 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h
index 56509ea..473a12b 100644
--- a/slv2/plugin.h
+++ b/slv2/plugin.h
@@ -210,9 +210,9 @@ slv2_plugin_get_value_by_qname_i18n(SLV2Plugin p,
* Time = Query
*/
SLV2Values
-slv2_plugin_get_value_for_subject(SLV2Plugin p,
- SLV2Value subject_uri,
- SLV2Value predicate_uri);
+slv2_plugin_get_value_for_subject(SLV2Plugin p,
+ SLV2Value subject_uri,
+ SLV2Value predicate_uri);
/** Return whether a feature is supported by a plugin.
diff --git a/slv2/plugininstance.h b/slv2/plugininstance.h
index 56573c8..7c7dc92 100644
--- a/slv2/plugininstance.h
+++ b/slv2/plugininstance.h
@@ -23,7 +23,6 @@
extern "C" {
#endif
-#include <assert.h>
#include <stddef.h>
#include "lv2.h"
#include "slv2/plugin.h"
@@ -96,9 +95,6 @@ slv2_instance_free(SLV2Instance instance);
static inline const char*
slv2_instance_get_uri(SLV2Instance instance)
{
- assert(instance);
- assert(instance->lv2_descriptor);
-
return instance->lv2_descriptor->URI;
}
@@ -113,10 +109,6 @@ slv2_instance_connect_port(SLV2Instance instance,
uint32_t port_index,
void* data_location)
{
- assert(instance);
- assert(instance->lv2_descriptor);
- assert(instance->lv2_descriptor->connect_port);
-
instance->lv2_descriptor->connect_port
(instance->lv2_handle, port_index, data_location);
}
@@ -131,9 +123,6 @@ slv2_instance_connect_port(SLV2Instance instance,
static inline void
slv2_instance_activate(SLV2Instance instance)
{
- assert(instance);
- assert(instance->lv2_descriptor);
-
if (instance->lv2_descriptor->activate)
instance->lv2_descriptor->activate(instance->lv2_handle);
}
@@ -148,10 +137,6 @@ static inline void
slv2_instance_run(SLV2Instance instance,
uint32_t sample_count)
{
- assert(instance);
- assert(instance->lv2_descriptor);
- assert(instance->lv2_handle);
-
/*if (instance->lv2_descriptor->run)*/
instance->lv2_descriptor->run(instance->lv2_handle, sample_count);
}
@@ -165,10 +150,6 @@ slv2_instance_run(SLV2Instance instance,
static inline void
slv2_instance_deactivate(SLV2Instance instance)
{
- assert(instance);
- assert(instance->lv2_descriptor);
- assert(instance->lv2_handle);
-
if (instance->lv2_descriptor->deactivate)
instance->lv2_descriptor->deactivate(instance->lv2_handle);
}
@@ -183,9 +164,6 @@ static inline const void*
slv2_instance_get_extension_data(SLV2Instance instance,
const char* uri)
{
- assert(instance);
- assert(instance->lv2_descriptor);
-
if (instance->lv2_descriptor->extension_data)
return instance->lv2_descriptor->extension_data(uri);
else
@@ -203,9 +181,6 @@ slv2_instance_get_extension_data(SLV2Instance instance,
static inline const LV2_Descriptor*
slv2_instance_get_descriptor(SLV2Instance instance)
{
- assert(instance);
- assert(instance->lv2_descriptor);
-
return instance->lv2_descriptor;
}
@@ -220,9 +195,6 @@ slv2_instance_get_descriptor(SLV2Instance instance)
static inline LV2_Handle
slv2_instance_get_handle(SLV2Instance instance)
{
- assert(instance);
- assert(instance->lv2_descriptor);
-
return instance->lv2_handle;
}