summaryrefslogtreecommitdiffstats
path: root/slv2/stringlist.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-18 21:12:59 +0000
committerDavid Robillard <d@drobilla.net>2007-02-18 21:12:59 +0000
commitec3e2125f960aa3de9da474d175bab353745748b (patch)
tree64d5f7e53cc47cca38bf41b6d1f69bc62dafac7f /slv2/stringlist.h
parentf340d22e82760166d24a037d8466501217b06a3e (diff)
downloadlilv-ec3e2125f960aa3de9da474d175bab353745748b.tar.gz
lilv-ec3e2125f960aa3de9da474d175bab353745748b.tar.bz2
lilv-ec3e2125f960aa3de9da474d175bab353745748b.zip
Fixed index types of Strings and Plugins for consistency.
git-svn-id: http://svn.drobilla.net/lad/slv2@315 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/stringlist.h')
-rw-r--r--slv2/stringlist.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/slv2/stringlist.h b/slv2/stringlist.h
index 5ed711b..4abb383 100644
--- a/slv2/stringlist.h
+++ b/slv2/stringlist.h
@@ -19,7 +19,10 @@
#ifndef __SLV2_STRINGLIST_H__
#define __SLV2_STRINGLIST_H__
-#include <slv2/private_types.h>
+#include <stdbool.h>
+
+typedef void* SLV2Strings;
+
#ifdef __cplusplus
extern "C" {
@@ -34,9 +37,16 @@ extern "C" {
* @{
*/
+
+/** Allocate a new, empty SLV2Strings
+ */
+SLV2Strings
+slv2_strings_new();
+
+
/** Get the number of elements in a string list.
*/
-int
+unsigned
slv2_strings_size(const SLV2Strings list);
@@ -45,7 +55,7 @@ slv2_strings_size(const SLV2Strings list);
* @return the element at @a index, or NULL if index is out of range.
*/
char*
-slv2_strings_get_at(const SLV2Strings list, int index);
+slv2_strings_get_at(const SLV2Strings list, unsigned index);
/** Return whether @a list contains @a uri.