diff options
author | David Robillard <d@drobilla.net> | 2008-01-27 07:49:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-27 07:49:37 +0000 |
commit | 6de587b04154f2efdc2a94c0a78225f7adc88ff9 (patch) | |
tree | a25b1b2e1e80fe8d7fe9a16336d9077d3b0d64b2 /slv2/port.h | |
parent | 6f4460aee9962a49ae872eef42ba75a439ea6e59 (diff) | |
download | lilv-6de587b04154f2efdc2a94c0a78225f7adc88ff9.tar.gz lilv-6de587b04154f2efdc2a94c0a78225f7adc88ff9.tar.bz2 lilv-6de587b04154f2efdc2a94c0a78225f7adc88ff9.zip |
Packaging stuff.
Add scale points API.
Display scale points in lv2_inspect.
Fix bugs resulting in returning empty collections.
git-svn-id: http://svn.drobilla.net/lad/slv2@1114 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/port.h')
-rw-r--r-- | slv2/port.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/slv2/port.h b/slv2/port.h index 5c0549c..6b55a56 100644 --- a/slv2/port.h +++ b/slv2/port.h @@ -138,13 +138,26 @@ slv2_port_is_a(SLV2Plugin plugin, * Time = Query */ void -slv2_port_get_range(SLV2Plugin p, +slv2_port_get_range(SLV2Plugin plugin, SLV2Port port, SLV2Value* def, SLV2Value* min, SLV2Value* max); +/** Get the scale points (enumeration values) of a port. + * + * This returns a collection of 'interesting' named values of a port + * (e.g. appropriate entries for a UI selector associated with this port). + * + * Returned value may be NULL if @a port has no scale points, otherwise it + * must be freed by caller with slv2_scale_points_free. + */ +SLV2ScalePoints +slv2_port_get_scale_points(SLV2Plugin plugin, + SLV2Port port); + + /** @} */ #ifdef __cplusplus |