aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-26 19:23:13 +0100
committerDavid Robillard <d@drobilla.net>2020-12-31 13:25:56 +0100
commitd101d926946a5e8067a90d157b6553aae7bddc19 (patch)
treee997425e9f972e402830d9ab8cb65005068e9619 /src/node.h
parent8a93d0b3be5b6d80a1bef85bc73b2661f5ab4376 (diff)
downloadserd-d101d926946a5e8067a90d157b6553aae7bddc19.tar.gz
serd-d101d926946a5e8067a90d157b6553aae7bddc19.tar.bz2
serd-d101d926946a5e8067a90d157b6553aae7bddc19.zip
Format all code with clang-format
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/node.h b/src/node.h
index f99da1a6..e380f038 100644
--- a/src/node.h
+++ b/src/node.h
@@ -22,24 +22,27 @@
#include <stddef.h>
struct SerdNodeImpl {
- size_t n_bytes; /**< Size in bytes (not including null) */
- SerdNodeFlags flags; /**< Node flags (e.g. string properties) */
- SerdType type; /**< Node type */
+ size_t n_bytes; /**< Size in bytes (not including null) */
+ SerdNodeFlags flags; /**< Node flags (e.g. string properties) */
+ SerdType type; /**< Node type */
};
static inline char*
serd_node_buffer(SerdNode* node)
{
- return (char*)(node + 1);
+ return (char*)(node + 1);
}
static inline const char*
serd_node_buffer_c(const SerdNode* node)
{
- return (const char*)(node + 1);
+ return (const char*)(node + 1);
}
-SerdNode* serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdType type);
-void serd_node_set(SerdNode** dst, const SerdNode* src);
+SerdNode*
+serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdType type);
-#endif // SERD_NODE_H
+void
+serd_node_set(SerdNode** dst, const SerdNode* src);
+
+#endif // SERD_NODE_H