From 0b6bdcce6cea21909553a334629a5b3d004bd553 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Feb 2011 23:37:12 +0000 Subject: Add support for boolean values. Replace slv2_world_filter_language with extensible option system (slv2_world_set_option). git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2923 a436a847-0d15-0410-975c-d299462d15a1 --- src/slv2_internal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/slv2_internal.h') diff --git a/src/slv2_internal.h b/src/slv2_internal.h index f8ba415..e5aac33 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -214,8 +214,9 @@ struct _SLV2World { SLV2Node rdfs_subclassof_node; SLV2Node slv2_bundleuri_node; SLV2Node slv2_dmanifest_node; - SLV2Node xsd_integer_node; + SLV2Node xsd_boolean_node; SLV2Node xsd_decimal_node; + SLV2Node xsd_integer_node; SLV2Value doap_name_val; SLV2Value lv2_name_val; bool filter_language; @@ -256,6 +257,7 @@ typedef enum _SLV2ValueType { SLV2_VALUE_STRING, SLV2_VALUE_INT, SLV2_VALUE_FLOAT, + SLV2_VALUE_BOOL, SLV2_VALUE_BLANK } SLV2ValueType; @@ -265,6 +267,7 @@ struct _SLV2Value { union { int int_val; float float_val; + bool bool_val; SLV2Node uri_val; } val; }; -- cgit v1.2.1