From e32e3e62e30ef967783342513aa9b43a54157d62 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Jul 2011 15:14:08 +0000 Subject: Fix reference.h compilation --- ext/reference.lv2/reference.h | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'ext/reference.lv2/reference.h') diff --git a/ext/reference.lv2/reference.h b/ext/reference.lv2/reference.h index 043d3c2..427bf56 100644 --- a/ext/reference.lv2/reference.h +++ b/ext/reference.lv2/reference.h @@ -28,6 +28,8 @@ #include #include +#include "lv2/lv2plug.in/ns/ext/atom/atom.h" + /** Dynamically Allocated Data. @@ -41,6 +43,8 @@ */ typedef void* LV2_Blob; +typedef LV2_Atom LV2_Reference; + typedef void* LV2_Blob_Support_Data; typedef void (*LV2_Blob_Destroy)(LV2_Blob* blob); @@ -81,17 +85,17 @@ typedef struct { accessed, copied, or destroyed). The actual payload of the blob can be accessed with LV2_Blob_Support.blob_get. */ - LV2_Blob (*ref_get)(LV2_Blob_Support_Data data, - LV2_Reference_Reference* ref); + LV2_Blob (*ref_get)(LV2_Blob_Support_Data data, + LV2_Reference* ref); /** Copy a reference. This copies a reference but not the blob it refers to, i.e. after this call @a dst and @a src refer to the same LV2_Blob. */ - void (*ref_copy)(LV2_Blob_Support_Data data, - LV2_Reference_Reference* dst, - LV2_Reference_Reference* src); + void (*ref_copy)(LV2_Blob_Support_Data data, + LV2_Reference* dst, + LV2_Reference* src); /** Reset (release) a reference. @@ -110,8 +114,8 @@ typedef struct {
  • Release it with ref_reset.
  • */ - void (*ref_reset)(LV2_Blob_Support_Data data, - LV2_Reference_Reference* ref); + void (*ref_reset)(LV2_Blob_Support_Data data, + LV2_Reference* ref); /** Initialize a reference to point to a newly allocated Blob. @@ -129,11 +133,11 @@ typedef struct { @param type ID of type of blob to allocate. @param size Size of blob to allocate in bytes. */ - void (*blob_new)(LV2_Blob_Support_Data data, - LV2_Reference_Reference* ref, - LV2_Blob_Destroy destroy, - uint32_t type, - size_t size); + void (*blob_new)(LV2_Blob_Support_Data data, + LV2_Reference* ref, + LV2_Blob_Destroy destroy, + uint32_t type, + size_t size); /** Get blob's type as an ID. -- cgit v1.2.1