From 3b89559e4c08202bee228e25ea42a4371e333c9b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Dec 2019 09:16:07 -0500 Subject: 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. --- include/serd/statement.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/serd') 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 -- cgit v1.2.1