diff options
author | David Robillard <d@drobilla.net> | 2018-12-20 13:02:24 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:49 -0500 |
commit | 88d62648449a3f7d8e31a70d3d81dec6c895dd31 (patch) | |
tree | c63472ef33552484b8590ed168424685e4b306d2 /serd | |
parent | 66412dc1084040263f8ec75fde51129176a053de (diff) | |
download | serd-88d62648449a3f7d8e31a70d3d81dec6c895dd31.tar.gz serd-88d62648449a3f7d8e31a70d3d81dec6c895dd31.tar.bz2 serd-88d62648449a3f7d8e31a70d3d81dec6c895dd31.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 ce968a28..06bff454 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 |