diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 13:28:47 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-20 10:26:55 -0500 |
commit | 29e57379adab81cba7c38a00f30a48949281e216 (patch) | |
tree | 562b333a7dcd795ac085947a2231835e5ae271bf /src/node.h | |
parent | 552803a61c0f98dcf682ae4d44935e32c6b80472 (diff) | |
download | serd-29e57379adab81cba7c38a00f30a48949281e216.tar.gz serd-29e57379adab81cba7c38a00f30a48949281e216.tar.bz2 serd-29e57379adab81cba7c38a00f30a48949281e216.zip |
Add model
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -39,6 +39,18 @@ serd_node_buffer_c(const SerdNode* node) return (const char*)(node + 1); } +static inline int +serd_node_wildcard_compare(const SerdNode* a, const SerdNode* b) +{ + return (!a || !b) ? 0 : serd_node_compare(a, b); +} + +static inline bool +serd_node_pattern_match(const SerdNode* a, const SerdNode* b) +{ + return !a || !b || serd_node_equals(a, b); +} + SerdNode* serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdNodeType type); |