diff options
author | David Robillard <d@drobilla.net> | 2011-02-12 21:51:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-12 21:51:42 +0000 |
commit | 8cf548e75edebbc310f61382e9edb416dd123673 (patch) | |
tree | 7787792e109b77c517ad2ab517dbc132ade99971 /slv2/slv2mm.hpp | |
parent | 053f1f082fe2603949050da99a76e6e799335c22 (diff) | |
download | lilv-8cf548e75edebbc310f61382e9edb416dd123673.tar.gz lilv-8cf548e75edebbc310f61382e9edb416dd123673.tar.bz2 lilv-8cf548e75edebbc310f61382e9edb416dd123673.zip |
Use unsigned instead of uint32_t in slv2mm (so swig automatically marshals them).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2943 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/slv2mm.hpp')
-rw-r--r-- | slv2/slv2mm.hpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/slv2/slv2mm.hpp b/slv2/slv2mm.hpp index f82925f..90d59fe 100644 --- a/slv2/slv2mm.hpp +++ b/slv2/slv2mm.hpp @@ -199,14 +199,14 @@ struct Plugin { SLV2_WRAP0(Values, plugin, get_supported_features); SLV2_WRAP0(Values, plugin, get_required_features); SLV2_WRAP0(Values, plugin, get_optional_features); - SLV2_WRAP0(uint32_t, plugin, get_num_ports); + SLV2_WRAP0(unsigned, plugin, get_num_ports); SLV2_WRAP0(bool, plugin, has_latency); - SLV2_WRAP0(uint32_t, plugin, get_latency_port_index); + SLV2_WRAP0(unsigned, plugin, get_latency_port_index); SLV2_WRAP0(Value, plugin, get_author_name); SLV2_WRAP0(Value, plugin, get_author_email); SLV2_WRAP0(Value, plugin, get_author_homepage); - inline Port get_port_by_index(uint32_t index) { + inline Port get_port_by_index(unsigned index) { return Port(me, slv2_plugin_get_port_by_index(me, index)); } @@ -221,7 +221,11 @@ struct Plugin { me, min_values, max_values, def_values); } - // TODO: slv2_plugin_get_num_ports_of_class (varargs) + inline unsigned get_num_ports_of_class(SLV2Value class_1, + SLV2Value class_2) { + // TODO: varargs + return slv2_plugin_get_num_ports_of_class(me, class_1, class_2, NULL); + } SLV2Plugin me; }; @@ -235,11 +239,11 @@ struct Instance { inline operator SLV2Instance() const { return me; } SLV2_WRAP2_VOID(instance, connect_port, - uint32_t, port_index, + unsigned, port_index, void*, data_location); SLV2_WRAP0_VOID(instance, activate); - SLV2_WRAP1_VOID(instance, run, uint32_t, sample_count); + SLV2_WRAP1_VOID(instance, run, unsigned, sample_count); SLV2_WRAP0_VOID(instance, deactivate); // TODO: get_extension_data |