diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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, |