aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-20 13:02:24 -0500
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:04 +0200
commite10776b1aa80d5b5da2749a6e13f00eb5b690871 (patch)
tree81af5a5bbb5fab8923b29ec189905ef18419c43d /serd/serd.h
parent8a83be33760f3304647cbab6d9e5fbda2c9c766c (diff)
downloadserd-e10776b1aa80d5b5da2749a6e13f00eb5b690871.tar.gz
serd-e10776b1aa80d5b5da2749a6e13f00eb5b690871.tar.bz2
serd-e10776b1aa80d5b5da2749a6e13f00eb5b690871.zip
Add serd_node_compare()
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 bd3b3f19..647cd778 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -829,6 +829,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
@{