aboutsummaryrefslogtreecommitdiff
path: root/props.lv2
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-01-08 22:32:35 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-01-08 22:32:35 +0100
commit1c86140efb7beaecd55018ec44fa635b2108e324 (patch)
treec9894e3f6dab58e66081f7fc3ee3a0ceb97d9305 /props.lv2
parente7285d81cf35dc8607e99269119fd8f3c19d0b04 (diff)
parent479d8830edff7c94b816d6dac8a4ae5e495147c4 (diff)
downloadsherlock.lv2-1c86140efb7beaecd55018ec44fa635b2108e324.tar.xz
Merge commit '479d8830edff7c94b816d6dac8a4ae5e495147c4'
Diffstat (limited to 'props.lv2')
-rw-r--r--props.lv2/props.h38
1 files changed, 16 insertions, 22 deletions
diff --git a/props.lv2/props.h b/props.lv2/props.h
index 896bfd7..6151b8d 100644
--- a/props.lv2/props.h
+++ b/props.lv2/props.h
@@ -592,13 +592,11 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
const LV2_Atom_URID *property = NULL;
const LV2_Atom_Int *sequence = NULL;
- LV2_Atom_Object_Query q [] = {
- { props->urid.patch_subject, (const LV2_Atom **)&subject },
- { props->urid.patch_property, (const LV2_Atom **)&property },
- { props->urid.patch_sequence, (const LV2_Atom **)&sequence },
- LV2_ATOM_OBJECT_QUERY_END
- };
- lv2_atom_object_query(obj, q);
+ lv2_atom_object_get(obj,
+ props->urid.patch_subject, &subject,
+ props->urid.patch_property, &property,
+ props->urid.patch_sequence, &sequence,
+ 0);
// check for a matching optional subject
if( (subject && props->urid.subject)
@@ -656,14 +654,12 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
const LV2_Atom_Int *sequence = NULL;
const LV2_Atom *value = NULL;
- LV2_Atom_Object_Query q [] = {
- { props->urid.patch_subject, (const LV2_Atom **)&subject },
- { props->urid.patch_property, (const LV2_Atom **)&property },
- { props->urid.patch_sequence, (const LV2_Atom **)&sequence },
- { props->urid.patch_value, &value },
- LV2_ATOM_OBJECT_QUERY_END
- };
- lv2_atom_object_query(obj, q);
+ lv2_atom_object_get(obj,
+ props->urid.patch_subject, &subject,
+ props->urid.patch_property, &property,
+ props->urid.patch_sequence, &sequence,
+ props->urid.patch_value, &value,
+ 0);
// check for a matching optional subject
if( (subject && props->urid.subject)
@@ -717,13 +713,11 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
const LV2_Atom_Int *sequence = NULL;
const LV2_Atom_Object *body = NULL;
- LV2_Atom_Object_Query q [] = {
- { props->urid.patch_subject, (const LV2_Atom **)&subject },
- { props->urid.patch_sequence, (const LV2_Atom **)&sequence},
- { props->urid.patch_body, (const LV2_Atom **)&body },
- LV2_ATOM_OBJECT_QUERY_END
- };
- lv2_atom_object_query(obj, q);
+ lv2_atom_object_get(obj,
+ props->urid.patch_subject, &subject,
+ props->urid.patch_sequence, &sequence,
+ props->urid.patch_body, &body,
+ 0);
// check for a matching optional subject
if( (subject && props->urid.subject)