|
|
|
@ -371,6 +371,7 @@ lv2_atom_object_body_get(uint32_t size, const LV2_Atom_Object_Body* body, ...)
@@ -371,6 +371,7 @@ lv2_atom_object_body_get(uint32_t size, const LV2_Atom_Object_Body* body, ...)
|
|
|
|
|
va_start(args, body); |
|
|
|
|
for (n_queries = 0; va_arg(args, uint32_t); ++n_queries) { |
|
|
|
|
if (!va_arg(args, const LV2_Atom**)) { |
|
|
|
|
va_end(args); |
|
|
|
|
return -1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -384,6 +385,7 @@ lv2_atom_object_body_get(uint32_t size, const LV2_Atom_Object_Body* body, ...)
@@ -384,6 +385,7 @@ lv2_atom_object_body_get(uint32_t size, const LV2_Atom_Object_Body* body, ...)
|
|
|
|
|
if (qkey == prop->key && !*qval) { |
|
|
|
|
*qval = &prop->value; |
|
|
|
|
if (++matches == n_queries) { |
|
|
|
|
va_end(args); |
|
|
|
|
return matches; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
@ -424,6 +426,7 @@ lv2_atom_object_get(const LV2_Atom_Object* object, ...)
@@ -424,6 +426,7 @@ lv2_atom_object_get(const LV2_Atom_Object* object, ...)
|
|
|
|
|
va_start(args, object); |
|
|
|
|
for (n_queries = 0; va_arg(args, uint32_t); ++n_queries) { |
|
|
|
|
if (!va_arg(args, const LV2_Atom**)) { |
|
|
|
|
va_end(args); |
|
|
|
|
return -1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -437,6 +440,7 @@ lv2_atom_object_get(const LV2_Atom_Object* object, ...)
@@ -437,6 +440,7 @@ lv2_atom_object_get(const LV2_Atom_Object* object, ...)
|
|
|
|
|
if (qkey == prop->key && !*qval) { |
|
|
|
|
*qval = &prop->value; |
|
|
|
|
if (++matches == n_queries) { |
|
|
|
|
va_end(args); |
|
|
|
|
return matches; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
@ -479,6 +483,7 @@ lv2_atom_object_get_typed(const LV2_Atom_Object* object, ...)
@@ -479,6 +483,7 @@ lv2_atom_object_get_typed(const LV2_Atom_Object* object, ...)
|
|
|
|
|
for (n_queries = 0; va_arg(args, uint32_t); ++n_queries) { |
|
|
|
|
if (!va_arg(args, const LV2_Atom**) || |
|
|
|
|
!va_arg(args, uint32_t)) { |
|
|
|
|
va_end(args); |
|
|
|
|
return -1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -493,6 +498,7 @@ lv2_atom_object_get_typed(const LV2_Atom_Object* object, ...)
@@ -493,6 +498,7 @@ lv2_atom_object_get_typed(const LV2_Atom_Object* object, ...)
|
|
|
|
|
if (!*qval && qkey == prop->key && qtype == prop->value.type) { |
|
|
|
|
*qval = &prop->value; |
|
|
|
|
if (++matches == n_queries) { |
|
|
|
|
va_end(args); |
|
|
|
|
return matches; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|