aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index 682bb42a..a7cb56b2 100644
--- a/src/node.c
+++ b/src/node.c
@@ -50,6 +50,7 @@ typedef struct StaticNode {
DEFINE_XSD_NODE(decimal)
DEFINE_XSD_NODE(integer)
+DEFINE_XSD_NODE(boolean)
DEFINE_XSD_NODE(base64Binary)
static SerdNode*
@@ -619,6 +620,12 @@ serd_new_integer(int64_t i, const SerdNode* datatype)
}
SerdNode*
+serd_new_boolean(bool b)
+{
+ return serd_new_typed_literal(b ? "true" : "false", &serd_xsd_boolean.node);
+}
+
+SerdNode*
serd_new_blob(const void* buf,
size_t size,
bool wrap_lines,