aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-05-05 15:42:40 +0200
committerDavid Robillard <d@drobilla.net>2019-12-20 10:26:55 -0500
commit7018614174d735f6a62144fd2fd1197628cbfa5a (patch)
tree6b9e40e84b4ae8a3b70cc928d942bd47d7ef8521 /serd/serd.h
parentc9ddbdae3b61183437a928b41e2a18c9704b68b4 (diff)
downloadserd-7018614174d735f6a62144fd2fd1197628cbfa5a.tar.gz
serd-7018614174d735f6a62144fd2fd1197628cbfa5a.tar.bz2
serd-7018614174d735f6a62144fd2fd1197628cbfa5a.zip
Add empty syntax type for suppressing output
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 462732ce..838b1f11 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -117,10 +117,11 @@ typedef enum {
/// RDF syntax type
typedef enum {
- SERD_TURTLE = 1, ///< Terse triples http://www.w3.org/TR/turtle
- SERD_NTRIPLES = 2, ///< Line-based triples http://www.w3.org/TR/n-triples/
- SERD_NQUADS = 3, ///< Line-based quads http://www.w3.org/TR/n-quads/
- SERD_TRIG = 4 ///< Terse quads http://www.w3.org/TR/trig/
+ SERD_SYNTAX_EMPTY = 0, ///< Empty syntax (suppress input or output)
+ SERD_TURTLE = 1, ///< Terse triples http://www.w3.org/TR/turtle
+ SERD_NTRIPLES = 2, ///< Flat triples http://www.w3.org/TR/n-triples/
+ SERD_NQUADS = 3, ///< Flat quads http://www.w3.org/TR/n-quads/
+ SERD_TRIG = 4 ///< Terse quads http://www.w3.org/TR/trig/
} SerdSyntax;
/// Flags indicating inline abbreviation information for a statement
@@ -471,8 +472,8 @@ serd_byte_sink_free(SerdByteSink* sink);
/**
Get a syntax by name
- Case-insensitive, supports "Turtle", "NTriples", "NQuads", and "TriG". Zero
- is returned if the name is not recognized.
+ Case-insensitive, supports "Turtle", "NTriples", "NQuads", and "TriG".
+ `SERD_SYNTAX_EMPTY` is returned if the name is not recognized.
*/
SERD_API
SerdSyntax
@@ -481,8 +482,8 @@ serd_syntax_by_name(const char* name);
/**
Guess a syntax from a filename
- This uses the file extension to guess the syntax of a file. Zero is
- returned if the extension is not recognized.
+ This uses the file extension to guess the syntax of a file.
+ `SERD_SYNTAX_EMPTY` is returned if the extension is not recognized.
*/
SERD_API
SerdSyntax
@@ -491,8 +492,8 @@ serd_guess_syntax(const char* filename);
/**
Guess a syntax from a filename
- This uses the file extension to guess the syntax of a file. Zero is
- returned if the extension is not recognized.
+ This uses the file extension to guess the syntax of a file.
+ `SERD_SYNTAX_EMPTY` is returned if the extension is not recognized.
*/
SERD_API
bool