aboutsummaryrefslogtreecommitdiffstats
path: root/src/statement.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-03 19:24:59 +0200
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit40534e6c42daabb6cc8ec2d49785bec088d1d3a8 (patch)
tree593e37de3e9bce98e291ec098a7081e6e26240b0 /src/statement.h
parent38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3 (diff)
downloadserd-40534e6c42daabb6cc8ec2d49785bec088d1d3a8.tar.gz
serd-40534e6c42daabb6cc8ec2d49785bec088d1d3a8.tar.bz2
serd-40534e6c42daabb6cc8ec2d49785bec088d1d3a8.zip
Add SerdStatement
Diffstat (limited to 'src/statement.h')
-rw-r--r--src/statement.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/statement.h b/src/statement.h
new file mode 100644
index 00000000..d4a64da5
--- /dev/null
+++ b/src/statement.h
@@ -0,0 +1,24 @@
+// Copyright 2011-2020 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
+
+#ifndef SERD_SRC_STATEMENT_H
+#define SERD_SRC_STATEMENT_H
+
+#include "serd/attributes.h"
+#include "serd/caret.h"
+#include "serd/node.h"
+
+#include <stdbool.h>
+
+struct SerdStatementImpl {
+ const SerdNode* SERD_NULLABLE nodes[4];
+ SerdCaret* SERD_NULLABLE caret;
+};
+
+SERD_PURE_FUNC bool
+serd_statement_is_valid(const SerdNode* SERD_NULLABLE subject,
+ const SerdNode* SERD_NULLABLE predicate,
+ const SerdNode* SERD_NULLABLE object,
+ const SerdNode* SERD_NULLABLE graph);
+
+#endif // SERD_SRC_STATEMENT_H