aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-14 10:40:35 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-14 10:40:35 +0200
commita1fa683174c9feb5fceb16fb05f5d5079c3dbb49 (patch)
tree73c0d60a3ee2cea2529c7eaed23d13c6a4e91c85
parentd553f2c317b0aef7827273222369ebe1890e7bad (diff)
downloadsherlock.lv2-a1fa683174c9feb5fceb16fb05f5d5079c3dbb49.tar.xz
fix return type of props_set_writable.
-rw-r--r--props.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/props.h b/props.h
index 4803c7a..177c77d 100644
--- a/props.h
+++ b/props.h
@@ -233,7 +233,7 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
const LV2_Atom_Object *obj, LV2_Atom_Forge_Ref *ref);
// rt-safe
-static inline void
+static inline bool
props_set_writable(props_t *props, LV2_URID property, LV2_URID type, const void *value);
// rt-safe
@@ -1157,13 +1157,15 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
return 0; // did not handle a patch event
}
-static inline void
+static inline bool
props_set_writable(props_t *props, LV2_URID property, LV2_URID type, const void *value)
{
props_impl_t *impl = _props_impl_search(props, property);
if(impl)
- _props_set_try(props, impl, type, value);
+ return _props_set_try(props, impl, type, value);
+
+ return false;
}
static inline LV2_Atom_Forge_Ref