summaryrefslogtreecommitdiffstats
path: root/include/lv2.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-26 03:25:08 +0000
committerDavid Robillard <d@drobilla.net>2006-07-26 03:25:08 +0000
commit2cd84e4209633e59439c445f821bed8410347bab (patch)
treeba34505505795cff5cf35c2958ed21933b822e12 /include/lv2.h
parentdeca2cc89850dffc051d0a0aafc9d681af838934 (diff)
downloadlilv-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 'include/lv2.h')
-rw-r--r--include/lv2.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/lv2.h b/include/lv2.h
index 7c3cec7..8523e80 100644
--- a/include/lv2.h
+++ b/include/lv2.h
@@ -24,6 +24,8 @@
#ifndef LV2_INCLUDED
#define LV2_INCLUDED
+#include <stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -153,7 +155,7 @@ typedef struct _LV2_Descriptor {
* activate() rather than here. If a host calls instantiate, it MUST
* call cleanup() at some point in the future. */
LV2_Handle (*instantiate)(const struct _LV2_Descriptor * Descriptor,
- unsigned long SampleRate,
+ uint32_t SampleRate,
const char * BundlePath,
const LV2_Host_Feature** HostFeatures);
@@ -184,7 +186,7 @@ typedef struct _LV2_Descriptor {
* However, overlapped buffers or use of a single buffer for both
* audio and control data may result in unexpected behaviour. */
void (*connect_port)(LV2_Handle Instance,
- unsigned long Port,
+ uint32_t Port,
void * DataLocation);
/** Function pointer that initialises a plugin instance and activates
@@ -226,7 +228,7 @@ typedef struct _LV2_Descriptor {
* there are various things that the plugin MUST NOT do within the run()
* function (see above). */
void (*run)(LV2_Handle Instance,
- unsigned long SampleCount);
+ uint32_t SampleCount);
/** This is the counterpart to activate() (see above). If there is
* nothing for deactivate() to do then the plugin writer may provide
@@ -287,12 +289,12 @@ typedef struct _LV2_Descriptor {
* index that results in NULL being returned. Index has no meaning,
* hosts MUST NOT depend on it remaining constant (ie when serialising)
* in any way. */
-const LV2_Descriptor * lv2_descriptor(unsigned long Index);
+const LV2_Descriptor * lv2_descriptor(uint32_t Index);
/** Datatype corresponding to the lv2_descriptor() function. */
typedef const LV2_Descriptor *
-(*LV2_Descriptor_Function)(unsigned long Index);
+(*LV2_Descriptor_Function)(uint32_t Index);
/* ******************************************************************** */