diff options
author | David Robillard <d@drobilla.net> | 2020-05-01 12:31:41 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:03 +0200 |
commit | 310779cce9bdfa7868cb09f4245b002c2abe1204 (patch) | |
tree | 51bcac90235abd950f561d403eaea56f5ada51bd /serd | |
parent | edf4beae75709472bfc29a824afdd0184fc65337 (diff) | |
download | serd-310779cce9bdfa7868cb09f4245b002c2abe1204.tar.gz serd-310779cce9bdfa7868cb09f4245b002c2abe1204.tar.bz2 serd-310779cce9bdfa7868cb09f4245b002c2abe1204.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 ba285255..f548d15f 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -483,22 +483,6 @@ SerdNode serd_node_from_substring(SerdType type, const char* 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 @@ -606,6 +590,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 |