aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-27 11:28:58 +0200
committerDavid Robillard <d@drobilla.net>2018-12-31 11:37:47 -0500
commitd5d8b241a424157f62958bee374dac1cc9341ea0 (patch)
treedda40bfc6ff4e9acb8290416e3c97e9d3d8969ca /serd/serd.h
parent12ef27529d86c581e7b38171fdcafd00cc691ef8 (diff)
downloadserd-d5d8b241a424157f62958bee374dac1cc9341ea0.tar.gz
serd-d5d8b241a424157f62958bee374dac1cc9341ea0.tar.bz2
serd-d5d8b241a424157f62958bee374dac1cc9341ea0.zip
Move SerdField to public API
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index fa69d82d..5304afa1 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -216,6 +216,16 @@ typedef enum {
} SerdNodeFlag;
/**
+ Field 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;
+
+/**
Bitwise OR of SerdNodeFlag values.
*/
typedef uint32_t SerdNodeFlags;