diff options
author | David Robillard <d@drobilla.net> | 2006-07-26 03:25:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-26 03:25:08 +0000 |
commit | 2cd84e4209633e59439c445f821bed8410347bab (patch) | |
tree | ba34505505795cff5cf35c2958ed21933b822e12 /slv2/plugin.h | |
parent | deca2cc89850dffc051d0a0aafc9d681af838934 (diff) | |
download | lilv-2cd84e4209633e59439c445f821bed8410347bab.tar.gz lilv-2cd84e4209633e59439c445f821bed8410347bab.tar.bz2 lilv-2cd84e4209633e59439c445f821bed8410347bab.zip |
- Removed all the unsigned char garbage from the API
- Updated types in lv2.h to be non-machine-dependant (removed unsigned long in favour of uint32_t)
- Updated schema
- Updated example plugin to work with the above (partially)
git-svn-id: http://svn.drobilla.net/lad/libslv2@101 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/plugin.h')
-rw-r--r-- | slv2/plugin.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h index 6af04bc..01dfc60 100644 --- a/slv2/plugin.h +++ b/slv2/plugin.h @@ -22,7 +22,8 @@ #ifdef __cplusplus extern "C" { #endif - + +#include <stdint.h> #include <stddef.h> #include <stdbool.h> #include "types.h" @@ -82,7 +83,7 @@ slv2_plugin_duplicate(const SLV2Plugin* plugin); * * \return a shared string which must not be modified or free()'d. */ -const unsigned char* +const char* slv2_plugin_get_uri(const SLV2Plugin* plugin); @@ -93,7 +94,7 @@ slv2_plugin_get_uri(const SLV2Plugin* plugin); * \return a complete URL eg. "file:///usr/foo/SomeBundle.lv2/someplug.ttl", * which is shared and must not be modified or free()'d. */ -const unsigned char* +const char* slv2_plugin_get_data_url(const SLV2Plugin* plugin); @@ -103,7 +104,7 @@ slv2_plugin_get_data_url(const SLV2Plugin* plugin); * eg. "/usr/foo/SomeBundle.lv2/someplug.ttl" which is shared and must not * be free()'d; or NULL if URL is not a local filesystem path. */ -const unsigned char* +const char* slv2_plugin_get_data_path(const SLV2Plugin* plugin); @@ -111,7 +112,7 @@ slv2_plugin_get_data_path(const SLV2Plugin* plugin); * * \return a shared string which must not be modified or free()'d. */ -const unsigned char* +const char* slv2_plugin_get_library_url(const SLV2Plugin* plugin); @@ -121,7 +122,7 @@ slv2_plugin_get_library_url(const SLV2Plugin* plugin); * eg. "/usr/foo/SomeBundle.lv2/someplug.so" which is shared and must not * be free()'d; or NULL if URL is not a local filesystem path. */ -const unsigned char* +const char* slv2_plugin_get_library_path(const SLV2Plugin* plugin); @@ -131,7 +132,7 @@ slv2_plugin_get_library_path(const SLV2Plugin* plugin); * data file without a language tag). Returned value must be free()'d by * the caller. */ -unsigned char* +char* slv2_plugin_get_name(const SLV2Plugin* plugin); @@ -154,7 +155,7 @@ slv2_plugin_get_property(const SLV2Plugin* p, /** Get the number of ports on this plugin. */ -unsigned long +uint32_t slv2_plugin_get_num_ports(const SLV2Plugin* p); |