aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/serd/serd.h b/serd/serd.h
index de2be28d..91dd7076 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -74,6 +74,9 @@ typedef enum {
* @ref SERD_ANON equivalent to SERD_BLANK_ID.
*/
typedef enum {
+ /** The type of a NULL node. */
+ SERD_NOTHING = 0,
+
/** Literal value. A literal optionally has either an associated language,
* or an associated datatype (not both).
*/
@@ -171,7 +174,7 @@ typedef struct {
const uint8_t* buf; ///< Buffer
} SerdNode;
-static const SerdNode SERD_NODE_NULL = { 0, 0, 0, 0 };
+static const SerdNode SERD_NODE_NULL = { SERD_NOTHING, 0, 0, 0 };
/** Make a deep copy of @a node.
* @return a node that the caller must free with @ref serd_node_free.