diff options
author | David Robillard <d@drobilla.net> | 2018-12-20 13:02:24 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 17b0fa6000573bd74a6968f5e4ff528c760f4de3 (patch) | |
tree | f411edee40a4085280267e626bf2d3b43070465c /serd | |
parent | 80ee5b663f4b15617ad032941e626f77b289a070 (diff) | |
download | serd-17b0fa6000573bd74a6968f5e4ff528c760f4de3.tar.gz serd-17b0fa6000573bd74a6968f5e4ff528c760f4de3.tar.bz2 serd-17b0fa6000573bd74a6968f5e4ff528c760f4de3.zip |
Add serd_node_compare()
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 11 |
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 @{ |