aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-04 06:35:51 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit7219a81ad6cff840eb604983b3752d4f2097532a (patch)
tree5c071ae9575f05a75f17a2d8280e9e9aed6440ac /include
parent1c7a8efa90003d21e19b47bbad185390cea5963c (diff)
downloadserd-7219a81ad6cff840eb604983b3752d4f2097532a.tar.gz
serd-7219a81ad6cff840eb604983b3752d4f2097532a.tar.bz2
serd-7219a81ad6cff840eb604983b3752d4f2097532a.zip
Add support for writing terse output with minimal newlines
Diffstat (limited to 'include')
-rw-r--r--include/serd/statement.h2
-rw-r--r--include/serd/writer.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/serd/statement.h b/include/serd/statement.h
index aee632cb..a1932796 100644
--- a/include/serd/statement.h
+++ b/include/serd/statement.h
@@ -35,6 +35,8 @@ typedef enum {
SERD_ANON_O = 1U << 3U, ///< Start of anonymous object
SERD_LIST_S = 1U << 4U, ///< Start of list subject
SERD_LIST_O = 1U << 5U, ///< Start of list object
+ SERD_TERSE_S = 1U << 6U, ///< Start of terse subject
+ SERD_TERSE_O = 1U << 7U, ///< Start of terse object
} SerdStatementFlag;
/// Bitwise OR of SerdStatementFlag values
diff --git a/include/serd/writer.h b/include/serd/writer.h
index db402fea..36880d2a 100644
--- a/include/serd/writer.h
+++ b/include/serd/writer.h
@@ -39,6 +39,7 @@ typedef enum {
SERD_WRITE_UNRESOLVED = 1U << 2U, ///< Do not make URIs relative
SERD_WRITE_BULK = 1U << 3U, ///< Write output in pages
SERD_WRITE_STRICT = 1U << 4U, ///< Abort with error on lossy output
+ SERD_WRITE_TERSE = 1U << 5U, ///< Write terser output without newlines
} SerdWriterFlag;
/// Bitwise OR of #SerdWriterFlag values