diff options
author | David Robillard <d@drobilla.net> | 2020-08-14 15:51:11 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-14 15:51:11 +0200 |
commit | 45cdfed515dbbcb85c6d54076b6103788d097400 (patch) | |
tree | cbea512a7a347d812457c78266af977d3c3bed4d /serd | |
parent | 0fb058b33ec0debd994e9025e8d6bd76dabcb687 (diff) | |
download | serd-45cdfed515dbbcb85c6d54076b6103788d097400.tar.gz serd-45cdfed515dbbcb85c6d54076b6103788d097400.tar.bz2 serd-45cdfed515dbbcb85c6d54076b6103788d097400.zip |
Reorder declarations to put node constructors together
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/serd/serd.h b/serd/serd.h index 46a2bc80..e1d4bfa5 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -479,22 +479,6 @@ SerdNode serd_node_from_substring(SerdType type, const uint8_t* str, size_t len); /** - Make a deep copy of `node`. - - @return a node that the caller must free with serd_node_free(). -*/ -SERD_API -SerdNode -serd_node_copy(const SerdNode* node); - -/** - Return true iff `a` is equal to `b`. -*/ -SERD_API -bool -serd_node_equals(const SerdNode* a, const SerdNode* b); - -/** Simple wrapper for serd_node_new_uri() to resolve a URI node. */ SERD_API @@ -602,6 +586,22 @@ SerdNode serd_node_new_blob(const void* buf, size_t size, bool wrap_lines); /** + Make a deep copy of `node`. + + @return a node that the caller must free with serd_node_free(). +*/ +SERD_API +SerdNode +serd_node_copy(const SerdNode* node); + +/** + Return true iff `a` is equal to `b`. +*/ +SERD_API +bool +serd_node_equals(const SerdNode* a, const SerdNode* b); + +/** Free any data owned by `node`. Note that if `node` is itself dynamically allocated (which is not the case |