diff options
author | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
commit | 6f4460aee9962a49ae872eef42ba75a439ea6e59 (patch) | |
tree | dd08af14a835d0d6f77aa6a3c4c9047ceb4b307f /src/values.c | |
parent | 361f21b9e1f59bd602d0e1ed8b80f726605995be (diff) | |
download | lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.tar.gz lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.tar.bz2 lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.zip |
Overhaul SLV2 API to return/take SLV2Value (instead of strings or primitives) wherever possible.
Make 'index' a fundemental property of ingen ports.
git-svn-id: http://svn.drobilla.net/lad/slv2@1113 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/values.c')
-rw-r--r-- | src/values.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/values.c b/src/values.c index 02544cd..9046edf 100644 --- a/src/values.c +++ b/src/values.c @@ -56,6 +56,15 @@ slv2_values_get_at(SLV2Values list, unsigned index) } +/* private */ +void +slv2_values_set_at(SLV2Values list, unsigned index, void* value) +{ + if (index <= INT_MAX) + raptor_sequence_set_at(list, index, value); +} + + bool slv2_values_contains(SLV2Values list, SLV2Value value) { |