diff options
author | David Robillard <d@drobilla.net> | 2019-12-19 09:16:07 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:05 -0500 |
commit | e7b616cc314117757068005800fbf20ef0e57bfe (patch) | |
tree | 763e8d638da935353dee2069891281d909b409b8 /include/serd/serd.h | |
parent | a365de08588b5da0783d0ec905576f272108442c (diff) | |
download | serd-e7b616cc314117757068005800fbf20ef0e57bfe.tar.gz serd-e7b616cc314117757068005800fbf20ef0e57bfe.tar.bz2 serd-e7b616cc314117757068005800fbf20ef0e57bfe.zip |
Move SerdField to public API
Diffstat (limited to 'include/serd/serd.h')
-rw-r--r-- | include/serd/serd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h index c2077f5c..21f6b7b1 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -191,6 +191,14 @@ typedef enum { /// Bitwise OR of SerdNodeFlag values typedef uint32_t SerdNodeFlags; +/// 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; + /// A syntactic RDF node typedef struct SerdNodeImpl SerdNode; |