From 4bd195662b9cf120cce37221f8970d80e619be56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Oct 2007 20:12:58 +0000 Subject: Update LV2 spec. git-svn-id: http://svn.drobilla.net/lad/slv2@812 a436a847-0d15-0410-975c-d299462d15a1 --- slv2/lv2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'slv2') diff --git a/slv2/lv2.h b/slv2/lv2.h index e19ff1e..d673a4c 100644 --- a/slv2/lv2.h +++ b/slv2/lv2.h @@ -324,13 +324,13 @@ typedef struct _LV2_Descriptor { * * The host is never responsible for freeing the returned value. * - * NOTE: It is highly recommended that this function returns a struct, and - * NOT a direct function pointer. Standard C++ (for real reasons) does not + * NOTE: This function should return a struct (likely containing function + * pointers) and NOT a direct function pointer. Standard C and C++ do not * allow type casts from void* to a function pointer type. To provide * additional functions a struct should be returned containing the extra - * function pointers (which is valid standard C++, and a much better idea + * function pointers (which is valid standard code, and a much better idea * for extensibility anyway). */ - void* (*extension_data)(const char * uri); + const void* (*extension_data)(const char * uri); } LV2_Descriptor; -- cgit v1.2.1