aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-20 13:02:24 -0500
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commit9b580f1a46571424e85b5fd9f41cb32df92ca7e0 (patch)
tree68a296fabf8308e97a38a790b9908bc25e8e7bca /serd
parentab7be940e5b9c74a842ec286abefa431ab8a840a (diff)
downloadserd-9b580f1a46571424e85b5fd9f41cb32df92ca7e0.tar.gz
serd-9b580f1a46571424e85b5fd9f41cb32df92ca7e0.tar.bz2
serd-9b580f1a46571424e85b5fd9f41cb32df92ca7e0.zip
Add serd_node_compare()
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index e9484ec9..aaf66549 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -643,6 +643,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);
+
+/**
Create a new URI from a string.
*/
SERD_API