aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-12-16 10:46:45 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-12-16 10:46:45 +0100
commit86a55df97ac4323e734fd36231ea0d7c64676e64 (patch)
tree94578dabd60d7b61537ee86d523e0595b1cd4348
parent622ce3e12c8d0e70fc4adbe1ddcb3f3eed720962 (diff)
downloadprops.lv2-86a55df97ac4323e734fd36231ea0d7c64676e64.tar.xz
introduce hidden properties.
-rw-r--r--VERSION2
-rw-r--r--props.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 7cd2918..5c5330a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.97
+0.1.99
diff --git a/props.h b/props.h
index ddbc268..8d81ad9 100644
--- a/props.h
+++ b/props.h
@@ -53,6 +53,7 @@ struct _props_def_t {
const char *type;
const char *access;
size_t offset;
+ bool hidden;
uint32_t max_size;
props_event_cb_t event_cb;
@@ -604,6 +605,9 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
{
props_impl_t *impl = &props->impls[i];
+ if(impl->def->hidden)
+ continue; // skip hidden properties
+
if(*ref)
*ref = _props_patch_set(props, forge, frames, impl, sequence_num);
}