From bd6e5f17c38e0e0291fa40ad57a83b1009b76c08 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 5 Apr 2011 23:12:07 +0000 Subject: Make atom:String a simple C string (in UTF-8), and atom:Literal a full RDF literal. Bump version number. --- ext/atom.lv2/atom.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ext/atom.lv2/atom.h') diff --git a/ext/atom.lv2/atom.h b/ext/atom.lv2/atom.h index b39844b..d3fd7cf 100644 --- a/ext/atom.lv2/atom.h +++ b/ext/atom.lv2/atom.h @@ -88,12 +88,13 @@ typedef struct _LV2_Atom { typedef LV2_Atom LV2_Atom_Reference; /** - The body of an atom:String. + The body of an atom:Literal. */ -typedef struct _LV2_Atom_String { - 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; +typedef struct _LV2_Atom_Literal { + uint32_t datatype; /**< The ID of the datatype of this literal */ + uint32_t lang; /**< The ID of the language of this literal */ + uint8_t str[]; /**< Null-terminated string data in UTF-8 encoding */ +} LV2_Atom_Literal; /** The body of an atom:Vector. -- cgit v1.2.1