diff options
author | David Robillard <d@drobilla.net> | 2007-02-18 21:12:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-18 21:12:59 +0000 |
commit | ec3e2125f960aa3de9da474d175bab353745748b (patch) | |
tree | 64d5f7e53cc47cca38bf41b6d1f69bc62dafac7f /slv2/stringlist.h | |
parent | f340d22e82760166d24a037d8466501217b06a3e (diff) | |
download | lilv-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.h | 16 |
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. |