summaryrefslogtreecommitdiffstats
path: root/src/collections.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 14:38:19 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 14:10:27 -0400
commit0a2de34d4fdcedf87e101a309aaa180fcdf18fcc (patch)
tree3932ab3a3ccea5b5dd56527afe5f046a83cc3f8c /src/collections.c
parenta07a8818f22bfa6b467093f1efd287e86983fdf1 (diff)
downloadlilv-0a2de34d4fdcedf87e101a309aaa180fcdf18fcc.tar.gz
lilv-0a2de34d4fdcedf87e101a309aaa180fcdf18fcc.tar.bz2
lilv-0a2de34d4fdcedf87e101a309aaa180fcdf18fcc.zip
Add missing const qualifiers
Diffstat (limited to 'src/collections.c')
-rw-r--r--src/collections.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/collections.c b/src/collections.c
index a7b6923..508f69c 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -167,33 +167,33 @@ lilv_nodes_merge(const LilvNodes* a, const LilvNodes* b)
/* Iterator */
-#define LILV_COLLECTION_IMPL(prefix, CT, ET) \
- \
- unsigned prefix##_size(const CT* collection) \
- { \
- return lilv_collection_size(collection); \
- } \
- \
- LilvIter* prefix##_begin(const CT* collection) \
- { \
- return lilv_collection_begin(collection); \
- } \
- \
- const ET* prefix##_get(const CT* collection, LilvIter* i) \
- { \
- return (ET*)lilv_collection_get(collection, i); \
- } \
- \
- LilvIter* prefix##_next(const CT* collection, LilvIter* i) \
- { \
- (void)collection; \
- return zix_tree_iter_next((ZixTreeIter*)i); \
- } \
- \
- bool prefix##_is_end(const CT* collection, LilvIter* i) \
- { \
- (void)collection; \
- return zix_tree_iter_is_end((ZixTreeIter*)i); \
+#define LILV_COLLECTION_IMPL(prefix, CT, ET) \
+ \
+ unsigned prefix##_size(const CT* collection) \
+ { \
+ return lilv_collection_size(collection); \
+ } \
+ \
+ LilvIter* prefix##_begin(const CT* collection) \
+ { \
+ return lilv_collection_begin(collection); \
+ } \
+ \
+ const ET* prefix##_get(const CT* collection, const LilvIter* i) \
+ { \
+ return (ET*)lilv_collection_get(collection, i); \
+ } \
+ \
+ LilvIter* prefix##_next(const CT* collection, LilvIter* i) \
+ { \
+ (void)collection; \
+ return zix_tree_iter_next((ZixTreeIter*)i); \
+ } \
+ \
+ bool prefix##_is_end(const CT* collection, const LilvIter* i) \
+ { \
+ (void)collection; \
+ return zix_tree_iter_is_end((const ZixTreeIter*)i); \
}
LILV_COLLECTION_IMPL(lilv_plugin_classes, LilvPluginClasses, LilvPluginClass)