aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-19 09:16:07 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit3b89559e4c08202bee228e25ea42a4371e333c9b (patch)
treea84406674c7237ab5abeecf56e64f83dfa90f6bb /include/serd
parent8c4e3097517e95c8c6ff67f0a972525bfeb3bb1d (diff)
downloadserd-3b89559e4c08202bee228e25ea42a4371e333c9b.tar.gz
serd-3b89559e4c08202bee228e25ea42a4371e333c9b.tar.bz2
serd-3b89559e4c08202bee228e25ea42a4371e333c9b.zip
Add SerdField to public API
A statement field enum was previously only used by the writer internally, but will be used in the public API (without a sentinel value) in following commits.
Diffstat (limited to 'include/serd')
-rw-r--r--include/serd/statement.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/serd/statement.h b/include/serd/statement.h
index 321aace4..33911c41 100644
--- a/include/serd/statement.h
+++ b/include/serd/statement.h
@@ -16,6 +16,14 @@ SERD_BEGIN_DECLS
@{
*/
+/// Index of a node in a statement
+typedef enum {
+ SERD_SUBJECT = 0U, ///< Subject
+ SERD_PREDICATE = 1U, ///< Predicate ("key")
+ SERD_OBJECT = 2U, ///< Object ("value")
+ SERD_GRAPH = 3U, ///< Graph ("context")
+} SerdField;
+
/// Flags indicating inline abbreviation information for a statement
typedef enum {
SERD_EMPTY_S = 1U << 1U, ///< Empty blank node subject