From 2cd84e4209633e59439c445f821bed8410347bab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 26 Jul 2006 03:25:08 +0000 Subject: - 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 --- include/lv2.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/lv2.h') 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 + #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); /* ******************************************************************** */ -- cgit v1.2.1