aboutsummaryrefslogtreecommitdiff
path: root/lv2lint_port.c
diff options
context:
space:
mode:
Diffstat (limited to 'lv2lint_port.c')
-rw-r--r--lv2lint_port.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/lv2lint_port.c b/lv2lint_port.c
index 67ee18c..077a3c5 100644
--- a/lv2lint_port.c
+++ b/lv2lint_port.c
@@ -28,7 +28,7 @@ static const ret_t *
_test_class(app_t *app)
{
static const ret_t ret_class_not_valid = {
- LINT_FAIL, "lv2:Port class <%s> not valid", LV2_CORE__Port};
+ LINT_FAIL, "lv2:Port class <%s> not valid", LV2_CORE__Port, NULL};
const ret_t *ret = NULL;
@@ -62,7 +62,7 @@ static const ret_t *
_test_properties(app_t *app)
{
static const ret_t ret_properties_not_valid = {
- LINT_FAIL, "lv2:portProperty <%s> not valid", LV2_CORE__portProperty};
+ LINT_FAIL, "lv2:portProperty <%s> not valid", LV2_CORE__portProperty, NULL};
const ret_t *ret = NULL;
@@ -99,13 +99,13 @@ _test_num(LilvNode *node, bool is_integer, bool is_toggled,
float *val)
{
static const ret_t ret_num_not_found = {
- LINT_WARN, "number not found", LV2_CORE__Port},
+ LINT_WARN, "number not found", LV2_CORE__Port, NULL},
ret_num_not_an_int = {
- LINT_WARN, "number not an integer", LV2_CORE__default},
+ LINT_WARN, "number not an integer", LV2_CORE__default, NULL},
ret_num_not_a_float = {
- LINT_WARN, "number no a float", LV2_CORE__default},
+ LINT_WARN, "number no a float", LV2_CORE__default, NULL},
ret_num_not_a_bool = {
- LINT_WARN, "number not a bool", LV2_CORE__default};
+ LINT_WARN, "number not a bool", LV2_CORE__default, NULL};
const ret_t *ret = NULL;
@@ -241,13 +241,10 @@ static const ret_t *
_test_range(app_t *app)
{
static const ret_t ret_range = {
- LINT_FAIL, "range invalid (min <= default <= max)", LV2_CORE__Port};
+ LINT_FAIL, "range invalid (min <= default <= max)", LV2_CORE__Port, NULL};
const ret_t *ret = NULL;
- const bool is_integer = lilv_port_has_property(app->plugin, app->port, app->uris.lv2_integer);
- const bool is_toggled = lilv_port_has_property(app->plugin, app->port, app->uris.lv2_toggled);
-
if( lilv_port_is_a(app->plugin, app->port, app->uris.lv2_ControlPort)
|| lilv_port_is_a(app->plugin, app->port, app->uris.lv2_CVPort) )
{
@@ -264,7 +261,7 @@ static const ret_t *
_test_event_port(app_t *app)
{
static const ret_t ret_event_port_deprecated = {
- LINT_FAIL, "lv2:EventPort is deprecated, use atom:AtomPort instead", LV2_EVENT__EventPort};
+ LINT_FAIL, "lv2:EventPort is deprecated, use atom:AtomPort instead", LV2_EVENT__EventPort, NULL};
const ret_t *ret = NULL;
@@ -280,13 +277,13 @@ static const ret_t *
_test_morph_port(app_t *app)
{
static const ret_t ret_morph_port_not_found = {
- LINT_FAIL, "morph port not found", LV2_MORPH__MorphPort},
+ LINT_FAIL, "morph port not found", LV2_MORPH__MorphPort, NULL},
ret_morph_supported_types_not_found = {
- LINT_FAIL, "supported types for morph port not found", LV2_MORPH__supportsType},
+ LINT_FAIL, "supported types for morph port not found", LV2_MORPH__supportsType, NULL},
ret_morph_supported_types_not_enough = {
- LINT_FAIL, "not enough supported types found", LV2_MORPH__supportsType},
+ LINT_FAIL, "not enough supported types found", LV2_MORPH__supportsType, NULL},
ret_morph_default_not_found = {
- LINT_FAIL, "default port type not found", LV2_MORPH__MorphPort};
+ LINT_FAIL, "default port type not found", LV2_MORPH__MorphPort, NULL};
LilvNodes *morph_supported_types = lilv_port_get(app->plugin, app->port,
app->uris.morph_supportsType);
@@ -340,9 +337,9 @@ static const ret_t *
_test_comment(app_t *app)
{
static const ret_t ret_comment_not_found = {
- LINT_NOTE, "rdfs:comment not found", LILV_NS_RDFS"comment"},
+ LINT_NOTE, "rdfs:comment not found", LILV_NS_RDFS"comment", NULL},
ret_comment_not_a_string = {
- LINT_FAIL, "rdfs:comment not a string", LILV_NS_RDFS"comment"};
+ LINT_FAIL, "rdfs:comment not a string", LILV_NS_RDFS"comment", NULL};
const ret_t *ret = NULL;
@@ -368,9 +365,9 @@ static const ret_t *
_test_group(app_t *app)
{
static const ret_t ret_group_not_found = {
- LINT_NOTE, "pg:group not found", LV2_PORT_GROUPS__group},
+ LINT_NOTE, "pg:group not found", LV2_PORT_GROUPS__group, NULL},
ret_group_not_a_uri = {
- LINT_FAIL, "pg:group not a URI", LV2_PORT_GROUPS__group};
+ LINT_FAIL, "pg:group not a URI", LV2_PORT_GROUPS__group, NULL};
const ret_t *ret = NULL;
@@ -396,9 +393,9 @@ static const ret_t *
_test_unit(app_t *app)
{
static const ret_t ret_units_unit_not_found = {
- LINT_NOTE, "units:unit not found", LV2_UNITS__unit},
+ LINT_NOTE, "units:unit not found", LV2_UNITS__unit, NULL},
ret_units_unit_not_a_uri_or_object = {
- LINT_FAIL, "units_unit not a URI or object", LV2_UNITS__unit};
+ LINT_FAIL, "units_unit not a URI or object", LV2_UNITS__unit, NULL};
const ret_t *ret = NULL;