summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 17:06:42 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 17:06:42 +0100
commit232f719ba8e1d12b221fe5ba50d2d43841161756 (patch)
treec39fa7b8a0083f42ec2314875796aa6e626ec8db
parent76181729bcd74b1409f07cdbc3b4e2f70af49a54 (diff)
downloadlilv-232f719ba8e1d12b221fe5ba50d2d43841161756.tar.gz
lilv-232f719ba8e1d12b221fe5ba50d2d43841161756.tar.bz2
lilv-232f719ba8e1d12b221fe5ba50d2d43841161756.zip
C++: Make more methods const
-rw-r--r--lilv/lilvmm.hpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lilv/lilvmm.hpp b/lilv/lilvmm.hpp
index a5de6c6..011c9c8 100644
--- a/lilv/lilvmm.hpp
+++ b/lilv/lilvmm.hpp
@@ -269,22 +269,22 @@ struct Plugin {
LILV_WRAP0(UIs, plugin, get_uis);
LILV_WRAP1(Nodes, plugin, get_related, const Node&, type);
- inline Port get_port_by_index(unsigned index) {
+ inline Port get_port_by_index(unsigned index) const {
return Port(me, lilv_plugin_get_port_by_index(me, index));
}
- inline Port get_port_by_symbol(LilvNode* symbol) {
+ inline Port get_port_by_symbol(LilvNode* symbol) const {
return Port(me, lilv_plugin_get_port_by_symbol(me, symbol));
}
inline void get_port_ranges_float(float* min_values,
float* max_values,
- float* def_values) {
+ float* def_values) const {
return lilv_plugin_get_port_ranges_float(
me, min_values, max_values, def_values);
}
- inline unsigned get_num_ports_of_class(LilvNode* class_1, ...) {
+ inline unsigned get_num_ports_of_class(LilvNode* class_1, ...) const {
va_list args;
va_start(args, class_1);
@@ -336,15 +336,15 @@ struct Instance {
LILV_WRAP1_VOID(instance, run, unsigned, sample_count);
LILV_WRAP0_VOID(instance, deactivate);
- inline const void* get_extension_data(const char* uri) {
+ inline const void* get_extension_data(const char* uri) const {
return lilv_instance_get_extension_data(me, uri);
}
- inline const LV2_Descriptor* get_descriptor() {
+ inline const LV2_Descriptor* get_descriptor() const {
return lilv_instance_get_descriptor(me);
}
- inline LV2_Handle get_handle() {
+ inline LV2_Handle get_handle() const {
return lilv_instance_get_handle(me);
}
@@ -361,24 +361,24 @@ struct World {
World(World&&) = delete;
World& operator=(World&&) = delete;
- inline LilvNode* new_uri(const char* uri) {
+ inline LilvNode* new_uri(const char* uri) const {
return lilv_new_uri(me, uri);
}
- inline LilvNode* new_string(const char* str) {
+ inline LilvNode* new_string(const char* str) const {
return lilv_new_string(me, str);
}
- inline LilvNode* new_int(int val) {
+ inline LilvNode* new_int(int val) const {
return lilv_new_int(me, val);
}
- inline LilvNode* new_float(float val) {
+ inline LilvNode* new_float(float val) const {
return lilv_new_float(me, val);
}
- inline LilvNode* new_bool(bool val) {
+ inline LilvNode* new_bool(bool val) const {
return lilv_new_bool(me, val);
}
inline Nodes find_nodes(const LilvNode* subject,
const LilvNode* predicate,
- const LilvNode* object) {
+ const LilvNode* object) const {
return lilv_world_find_nodes(me, subject, predicate, object);
}