aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-19 09:16:07 -0500
committerDavid Robillard <d@drobilla.net>2022-01-13 23:03:52 -0500
commita1c18e5585a1b3edbe62f53e768d270e54e4cac5 (patch)
treed50882062930a258b7d90d811ba0d237e5455a78 /include
parentc4df0038bcfba1676bbaaa98badd241ec7d0b55e (diff)
downloadserd-a1c18e5585a1b3edbe62f53e768d270e54e4cac5.tar.gz
serd-a1c18e5585a1b3edbe62f53e768d270e54e4cac5.tar.bz2
serd-a1c18e5585a1b3edbe62f53e768d270e54e4cac5.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')
-rw-r--r--include/serd/serd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 3be32a65..820af22c 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -827,6 +827,20 @@ serd_node_equals(const SerdNode* SERD_NULLABLE a,
/**
@}
+ @defgroup serd_statement Statement
+ @{
+*/
+
+/// Index of a node in a statement
+typedef enum {
+ SERD_SUBJECT = 0, ///< Subject
+ SERD_PREDICATE = 1, ///< Predicate ("key")
+ SERD_OBJECT = 2, ///< Object ("value")
+ SERD_GRAPH = 3, ///< Graph ("context")
+} SerdField;
+
+/**
+ @}
@defgroup serd_world World
@{
*/