aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index d81fbd7c..fa308c49 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -835,6 +835,17 @@ bool
serd_node_equals(const SerdNode* a, const SerdNode* b);
/**
+ Compare two nodes.
+
+ Returns less than, equal to, or greater than zero if `a` is less than, equal
+ to, or greater than `b`, respectively. NULL is treated as less than any
+ other node.
+*/
+SERD_API
+int
+serd_node_compare(const SerdNode* a, const SerdNode* b);
+
+/**
@}
@name Event Handlers
@{