aboutsummaryrefslogtreecommitdiffstats
path: root/src/statement.h
diff options
context:
space:
mode:
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