From 97bf8024d67baa23fb5ca6da32e0e4abf64dbe15 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Oct 2010 20:28:28 +0000 Subject: LV2_Atom_Object => LV2_Object (consistently). Fix string body of LV2_Atom_String. --- ext/atom.lv2/atom.h | 8 ++++---- ext/atom.lv2/atom.ttl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ext') diff --git a/ext/atom.lv2/atom.h b/ext/atom.lv2/atom.h index f547e80..a15000a 100644 --- a/ext/atom.lv2/atom.h +++ b/ext/atom.lv2/atom.h @@ -79,8 +79,8 @@ typedef LV2_Atom LV2_Atom_Reference; /** The body of an atom:String */ typedef struct _LV2_Atom_String { - uint32_t lang; /**< The ID of the language of this string */ - char* str; /**< Null-terminated string data in UTF-8 encoding */ + uint32_t lang; /**< The ID of the language of this string */ + uint8_t str[]; /**< Null-terminated string data in UTF-8 encoding */ } LV2_Atom_String; /** The body of an atom:Vector */ @@ -97,11 +97,11 @@ typedef struct _LV2_Atom_Property { } LV2_Atom_Property; /** The body of an atom:Resource or atom:Blank */ -typedef struct _LV2_Atom_Object { +typedef struct _LV2_Object { uint32_t context; /**< ID of context graph, or 0 for the default context */ uint32_t id; /**< ID for atom:Resource or blank ID for atom:Blank */ uint8_t properties[]; /**< Sequence of LV2_Atom_Property */ -} LV2_Atom_Object; +} LV2_Object; /* Optional Blob Support */ diff --git a/ext/atom.lv2/atom.ttl b/ext/atom.lv2/atom.ttl index cf048aa..186268c 100644 --- a/ext/atom.lv2/atom.ttl +++ b/ext/atom.lv2/atom.ttl @@ -241,7 +241,7 @@ atom:Object a rdfs:Class ; rdfs:comment """ Abstract base class for an "Object", i.e. an Atom with a number of properties. An LV2_Atom_Object is an unsigned 32-bit +href="urn:struct:LV2_Object">LV2_Object is an unsigned 32-bit integer context and id followed by a sequence of properties. -- cgit v1.2.1