diff options
author | David Robillard <d@drobilla.net> | 2011-12-30 08:23:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-30 08:23:19 +0000 |
commit | 8708ccb858ddbf5d521c4755e137bd04544a6ae5 (patch) | |
tree | 2da5030db36592ff19b13f8ff802a5f5c3bfb3b8 /src/lilv_internal.h | |
parent | c5c4a6e935eecc2d2dac7bb9cccd36057b8dc123 (diff) | |
download | lilv-8708ccb858ddbf5d521c4755e137bd04544a6ae5.tar.gz lilv-8708ccb858ddbf5d521c4755e137bd04544a6ae5.tar.bz2 lilv-8708ccb858ddbf5d521c4755e137bd04544a6ae5.zip |
Support arbitrary binary data in plugin state via base64 encoding.
Unit testing for plugin instantiation and state.
Build without LV2 state available.
Support URID values in plugin state nicely.
Fix various holes in state implementation exposed by tests.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3908 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/lilv_internal.h')
-rw-r--r-- | src/lilv_internal.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h index 75e21a2..9f19c1c 100644 --- a/src/lilv_internal.h +++ b/src/lilv_internal.h @@ -150,6 +150,7 @@ struct LilvWorldImpl { SordNode* rdfs_label_node; SordNode* rdfs_seealso_node; SordNode* rdfs_subclassof_node; + SordNode* xsd_base64Binary_node; SordNode* xsd_boolean_node; SordNode* xsd_decimal_node; SordNode* xsd_double_node; @@ -168,7 +169,8 @@ typedef enum { LILV_VALUE_INT, LILV_VALUE_FLOAT, LILV_VALUE_BOOL, - LILV_VALUE_BLANK + LILV_VALUE_BLANK, + LILV_VALUE_BLOB } LilvNodeType; struct LilvNodeImpl { @@ -179,6 +181,10 @@ struct LilvNodeImpl { float float_val; bool bool_val; SordNode* uri_val; + struct { + void* buf; + size_t size; + } blob_val; } val; LilvNodeType type; }; |